From: Junio C Hamano <gitster@pobox.com>
To: Dan McGee <dpmcgee@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [RFC/PATCH] Remove repo-config
Date: Wed, 16 Jan 2008 12:13:27 -0800 [thread overview]
Message-ID: <7v7ii9plzs.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <1200453554-14163-1-git-send-email-dpmcgee@gmail.com> (Dan McGee's message of "Tue, 15 Jan 2008 21:19:14 -0600")
Dan McGee <dpmcgee@gmail.com> writes:
> 'git config' has been used in place of 'git repo-config' for some time in
> the documentation and most of the tools, so remove traces of repo-config
> from the source.
>
> Signed-off-by: Dan McGee <dpmcgee@gmail.com>
I'd agree with the deprecation. We stopped advertising it long
time ago (1.5.0 I think).
> diff --git a/Documentation/git-repo-config.txt b/Documentation/git-repo-config.txt
Let's defer the removal til post 1.5.4.
> diff --git a/Makefile b/Makefile
Likewise.
> diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
Likewise.
> diff --git a/contrib/examples/git-tag.sh b/contrib/examples/git-tag.sh
> index ae7c531..a3182df 100755
> --- a/contrib/examples/git-tag.sh
> +++ b/contrib/examples/git-tag.sh
> @@ -167,6 +167,7 @@ type=$(git cat-file -t $object) || exit 1
> tagger=$(git-var GIT_COMMITTER_IDENT) || exit 1
>
> test -n "$username" ||
> + #NOTE: 'git repo-config' has since been replaced by 'git config'
> username=$(git repo-config user.signingkey) ||
> username=$(expr "z$tagger" : 'z\(.*>\)')
Good.
> diff --git a/git.c b/git.c
Deferred.
> diff --git a/t/t0020-crlf.sh b/t/t0020-crlf.sh
> diff --git a/t/t9200-git-cvsexportcommit.sh b/t/t9200-git-cvsexportcommit.sh
Doing s/repo-config/config/ in test scripts is good.
> diff --git a/templates/hooks--update b/templates/hooks--update
> index bd93dd1..09a99ff 100644
> --- a/templates/hooks--update
> +++ b/templates/hooks--update
> @@ -37,9 +37,9 @@ if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then
> fi
>
> # --- Config
> -allowunannotated=$(git-repo-config --bool hooks.allowunannotated)
> -allowdeletebranch=$(git-repo-config --bool hooks.allowdeletebranch)
> -allowdeletetag=$(git-repo-config --bool hooks.allowdeletetag)
> +allowunannotated=$(git config --bool hooks.allowunannotated)
> +allowdeletebranch=$(git config --bool hooks.allowdeletebranch)
> +allowdeletetag=$(git config --bool hooks.allowdeletetag)
>
> # check for no description
> projectdesc=$(sed -e '1q' "$GIT_DIR/description")
Good.
> @@ -53,7 +53,7 @@ fi
> if [ "$newrev" = "0000000000000000000000000000000000000000" ]; then
> newrev_type=delete
> else
> - newrev_type=$(git-cat-file -t $newrev)
> + newrev_type=$(git cat-file -t $newrev)
> fi
>
> case "$refname","$newrev_type" in
Good but does not belong to the topic.
next prev parent reply other threads:[~2008-01-16 20:14 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-16 3:19 [RFC/PATCH] Remove repo-config Dan McGee
2008-01-16 4:23 ` Junio C Hamano
2008-01-16 4:40 ` Dan McGee
2008-01-16 17:20 ` Junio C Hamano
2008-01-16 20:32 ` Junio C Hamano
2008-01-16 20:13 ` Junio C Hamano [this message]
2008-01-16 20:47 ` Peter Oberndorfer
2008-01-16 20:58 ` [STGIT PATCH] replace "git repo-config" usage by "git config" Peter Oberndorfer
2008-01-16 21:13 ` Jakub Narebski
2008-01-16 21:46 ` Peter Oberndorfer
2008-01-17 17:07 ` Catalin Marinas
2008-01-17 23:49 ` Jakub Narebski
2008-01-17 7:45 ` Karl Hasselström
2008-01-18 4:24 ` Karl Hasselström
2008-01-23 11:35 ` Catalin Marinas
2008-01-23 16:10 ` Karl Hasselström
2008-01-23 16:42 ` Catalin Marinas
2008-01-24 7:01 ` Karl Hasselström
2008-01-24 15:31 ` Catalin Marinas
2008-01-24 18:08 ` Karl Hasselström
2008-01-24 18:20 ` Catalin Marinas
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7v7ii9plzs.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=dpmcgee@gmail.com \
--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.
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 NNTP newsgroup(s).