Officially deprecate repo-config.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Jan 17, 2008 at 22:52 UTC
5c66d0d4580196094e80c552f141525759a8e249
9 files changed
+25
-20
Documentation/RelNotes-1.5.4.txt
+4
@@ -46,6 +46,10 @@ Deprecation notices
46
and works for all transports; "git peek-remote" will be removed in
47
the future.
48
49
+ * "git repo-config" which was an old name for "git config" command
50
+ has been supported without being advertised for a long time. The
51
+ next feature release will remove it.
52
+
53
* From v1.6.0, the repack.usedeltabaseoffset config option will default
54
to true, which will give denser packfiles (i.e. more efficient storage).
55
The downside is that git older than version 1.4.4 will not be able
Makefile
+1
-1
@@ -1145,7 +1145,7 @@ check-docs::
1145
case "$$v" in \
1146
git-merge-octopus | git-merge-ours | git-merge-recursive | \
1147
git-merge-resolve | git-merge-stupid | git-merge-subtree | \
1148
- git-fsck-objects | git-init-db | git-repo-config | \
1148
+ git-fsck-objects | git-init-db | \
1149
git-?*--?* ) continue ;; \
1150
esac ; \
1151
test -f "Documentation/$$v.txt" || \
command-list.txt
+1
@@ -91,6 +91,7 @@ git-reflog ancillarymanipulators
91
git-relink ancillarymanipulators
92
git-remote ancillarymanipulators
93
git-repack ancillarymanipulators
94
+git-repo-config ancillarymanipulators deprecated
95
git-request-pull foreignscminterface
96
git-rerere ancillaryinterrogators
97
git-reset mainporcelain common
contrib/completion/git-completion.bash
+1
-1
@@ -333,7 +333,7 @@ __git_commands ()
333
read-tree) : plumbing;;
334
receive-pack) : plumbing;;
335
reflog) : plumbing;;
336
- repo-config) : plumbing;;
336
+ repo-config) : deprecated;;
337
rerere) : plumbing;;
338
rev-list) : plumbing;;
339
rev-parse) : plumbing;;
contrib/examples/git-tag.sh
+1
-1
@@ -167,7 +167,7 @@ type=$(git cat-file -t $object) || exit 1
167
tagger=$(git-var GIT_COMMITTER_IDENT) || exit 1
168
169
test -n "$username" ||
170
- username=$(git repo-config user.signingkey) ||
170
+ username=$(git config user.signingkey) ||
171
username=$(expr "z$tagger" : 'z\(.*>\)')
172
173
trap 'rm -f "$GIT_DIR"/TAG_TMP* "$GIT_DIR"/TAG_FINALMSG "$GIT_DIR"/TAG_EDITMSG' 0
t/t0020-crlf.sh
+12
-12
@@ -19,7 +19,7 @@ remove_cr () {
19
20
test_expect_success setup '
21
22
- git repo-config core.autocrlf false &&
22
+ git config core.autocrlf false &&
23
24
for w in Hello world how are you; do echo $w; done >one &&
25
mkdir dir &&
@@ -46,7 +46,7 @@ test_expect_success 'update with autocrlf=input' '
46
47
rm -f tmp one dir/two three &&
48
git read-tree --reset -u HEAD &&
49
- git repo-config core.autocrlf input &&
49
+ git config core.autocrlf input &&
50
51
for f in one dir/two
52
do
@@ -70,7 +70,7 @@ test_expect_success 'update with autocrlf=true' '
70
71
rm -f tmp one dir/two three &&
72
git read-tree --reset -u HEAD &&
73
- git repo-config core.autocrlf true &&
73
+ git config core.autocrlf true &&
74
75
for f in one dir/two
76
do
@@ -93,7 +93,7 @@ test_expect_success 'update with autocrlf=true' '
93
test_expect_success 'checkout with autocrlf=true' '
94
95
rm -f tmp one dir/two three &&
96
- git repo-config core.autocrlf true &&
96
+ git config core.autocrlf true &&
97
git read-tree --reset -u HEAD &&
98
99
for f in one dir/two
@@ -117,7 +117,7 @@ test_expect_success 'checkout with autocrlf=true' '
117
test_expect_success 'checkout with autocrlf=input' '
118
119
rm -f tmp one dir/two three &&
120
- git repo-config core.autocrlf input &&
120
+ git config core.autocrlf input &&
121
git read-tree --reset -u HEAD &&
122
123
for f in one dir/two
@@ -143,7 +143,7 @@ test_expect_success 'checkout with autocrlf=input' '
143
test_expect_success 'apply patch (autocrlf=input)' '
144
145
rm -f tmp one dir/two three &&
146
- git repo-config core.autocrlf input &&
146
+ git config core.autocrlf input &&
147
git read-tree --reset -u HEAD &&
148
149
git apply patch.file &&
@@ -156,7 +156,7 @@ test_expect_success 'apply patch (autocrlf=input)' '
156
test_expect_success 'apply patch --cached (autocrlf=input)' '
157
158
rm -f tmp one dir/two three &&
159
- git repo-config core.autocrlf input &&
159
+ git config core.autocrlf input &&
160
git read-tree --reset -u HEAD &&
161
162
git apply --cached patch.file &&
@@ -169,7 +169,7 @@ test_expect_success 'apply patch --cached (autocrlf=input)' '
169
test_expect_success 'apply patch --index (autocrlf=input)' '
170
171
rm -f tmp one dir/two three &&
172
- git repo-config core.autocrlf input &&
172
+ git config core.autocrlf input &&
173
git read-tree --reset -u HEAD &&
174
175
git apply --index patch.file &&
@@ -183,7 +183,7 @@ test_expect_success 'apply patch --index (autocrlf=input)' '
183
test_expect_success 'apply patch (autocrlf=true)' '
184
185
rm -f tmp one dir/two three &&
186
- git repo-config core.autocrlf true &&
186
+ git config core.autocrlf true &&
187
git read-tree --reset -u HEAD &&
188
189
git apply patch.file &&
@@ -196,7 +196,7 @@ test_expect_success 'apply patch (autocrlf=true)' '
196
test_expect_success 'apply patch --cached (autocrlf=true)' '
197
198
rm -f tmp one dir/two three &&
199
- git repo-config core.autocrlf true &&
199
+ git config core.autocrlf true &&
200
git read-tree --reset -u HEAD &&
201
202
git apply --cached patch.file &&
@@ -209,7 +209,7 @@ test_expect_success 'apply patch --cached (autocrlf=true)' '
209
test_expect_success 'apply patch --index (autocrlf=true)' '
210
211
rm -f tmp one dir/two three &&
212
- git repo-config core.autocrlf true &&
212
+ git config core.autocrlf true &&
213
git read-tree --reset -u HEAD &&
214
215
git apply --index patch.file &&
@@ -224,7 +224,7 @@ test_expect_success '.gitattributes says two is binary' '
224
225
rm -f tmp one dir/two three &&
226
echo "two -crlf" >.gitattributes &&
227
- git repo-config core.autocrlf true &&
227
+ git config core.autocrlf true &&
228
git read-tree --reset -u HEAD &&
229
230
if remove_cr dir/two >/dev/null
t/t4201-shortlog.sh
+1
-1
@@ -22,7 +22,7 @@ echo 3 > a1
22
git commit --quiet -m "$(echo "This is a very, very long first line for the commit message to see if it is wrapped correctly" | sed "s/i/1234/g" | tr 1234 '\360\235\204\236')" a1
23
24
# now fsck up the utf8
25
-git repo-config i18n.commitencoding non-utf-8
25
+git config i18n.commitencoding non-utf-8
26
echo 4 > a1
27
git commit --quiet -m "$(echo "This is a very, very long first line for the commit message to see if it is wrapped correctly" | sed "s/i/1234/g" | tr 1234 '\370\235\204\236')" a1
28
t/t9200-git-cvsexportcommit.sh
+1
-1
@@ -225,7 +225,7 @@ test_expect_success \
225
! git-cvsexportcommit -c $id
226
)'
227
228
-case "$(git repo-config --bool core.filemode)" in
228
+case "$(git config --bool core.filemode)" in
229
false)
230
;;
231
*)
templates/hooks--update
+3
-3
@@ -37,9 +37,9 @@ if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then
37
fi
38
39
# --- Config
40
-allowunannotated=$(git-repo-config --bool hooks.allowunannotated)
41
-allowdeletebranch=$(git-repo-config --bool hooks.allowdeletebranch)
42
-allowdeletetag=$(git-repo-config --bool hooks.allowdeletetag)
40
+allowunannotated=$(git config --bool hooks.allowunannotated)
41
+allowdeletebranch=$(git config --bool hooks.allowdeletebranch)
42
+allowdeletetag=$(git config --bool hooks.allowdeletetag)
43
44
# check for no description
45
projectdesc=$(sed -e '1q' "$GIT_DIR/description")