git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Jan Katins <jasc@gmx.net>
To: git@vger.kernel.org
Subject: "git maintenance start" adds entry to the main config file, not to already existing maintenance section in included file
Date: Sun, 10 Mar 2024 14:12:05 +0100	[thread overview]
Message-ID: <CAP+2wOWvb8Xy5Q_u26FhZrVHazBG0ZCoKnzR8LUKo51f-NXndA@mail.gmail.com> (raw)

Hello!

What did you do before the bug happened? (Steps to reproduce your issue)

I've a git config (in ~/.config/git/config) which reads:

```ini
...
[include]
    path = git_config_local_maintenance
....
```

In ~/.config/git/git_config_local_maintenance I have:

```ini
[maintenance]
    repo =/User/jankatins/projects/whatever
```

ran `git maintenance start` in a new repo.

What did you expect to happen? (Expected behavior)

That the new repo gets appended in
~/.config/git/git_config_local_maintenance to the already existing
maintenance section.

What happened instead? (Actual behavior)

An additional maintenance section was added in the main config file
with the repo key added there.

What's different between what you expected and what actually happened?

The additional maintenance section in the main config file instead of
appending the repo in the already existing section in the included
file.

This is "undesired", as I have my main git config file in a dotfile
manager, but don't want to have the (much more frequently changing and
laptop specific) maintenance entries in the dotfile repo.

```
[System Info]
git version: git version 2.44.0
cpu: x86_64
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon
uname: Darwin 23.4.0 Darwin Kernel Version 23.4.0: Wed Feb 21 21:44:31
PST 2024; root:xnu-10063.101.15~2/RELEASE_X86_64 x86_64
compiler info: clang: 15.0.0 (clang-1500.1.0.2.5)
libc info: no libc information available
$SHELL (typically, interactive shell): /usr/local/bin/zsh
```

Kind regards

Jan
--
jasc@gmx.net


             reply	other threads:[~2024-03-10 13:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-10 13:12 Jan Katins [this message]
2024-04-02 15:27 ` "git maintenance start" adds entry to the main config file, not to already existing maintenance section in included file Phillip Wood

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAP+2wOWvb8Xy5Q_u26FhZrVHazBG0ZCoKnzR8LUKo51f-NXndA@mail.gmail.com \
    --to=jasc@gmx.net \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).