Rename git-config-set to git-repo-config
... and adjust all references. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
Johannes Schindelin committed
Nov 24, 2005 at 11:36 UTC
ee72aeaf009417156a3599b0eb69da3f7023ca07
6 files changed
+51
-51
.gitignore
+1
-1
@@ -17,7 +17,6 @@ git-clone
17
git-clone-pack
18
git-commit
19
git-commit-tree
20
-git-config-set
20
git-convert-objects
21
git-count-objects
22
git-cvsexportcommit
@@ -76,6 +75,7 @@ git-rebase
75
git-receive-pack
76
git-relink
77
git-repack
78
+git-repo-config
79
git-request-pull
80
git-reset
81
git-resolve
Documentation/git-repo-config.txt
renamed
+19
-19
@@ -1,19 +1,19 @@
1
-git-config-set(1)
2
-===============
1
+git-repo-config(1)
2
+==================
3
4
NAME
5
----
6
-git-config-set - Set options in .git/config.
6
+git-repo-config - Get and set options in .git/config.
7
8
9
SYNOPSIS
10
--------
11
-'git-config-set' name [value [value_regex]]
12
-'git-config-set' --replace-all name [value [value_regex]]
13
-'git-config-set' --get name [value_regex]
14
-'git-config-set' --get-all name [value_regex]
15
-'git-config-set' --unset name [value_regex]
16
-'git-config-set' --unset-all name [value_regex]
11
+'git-repo-config' name [value [value_regex]]
12
+'git-repo-config' --replace-all name [value [value_regex]]
13
+'git-repo-config' --get name [value_regex]
14
+'git-repo-config' --get-all name [value_regex]
15
+'git-repo-config' --unset name [value_regex]
16
+'git-repo-config' --unset-all name [value_regex]
17
18
DESCRIPTION
19
-----------
@@ -89,7 +89,7 @@ Given a .git/config like this:
89
you can set the filemode to true with
90
91
------------
92
-% git config-set core.filemode true
92
+% git repo-config core.filemode true
93
------------
94
95
The hypothetic proxy command entries actually have a postfix to discern
@@ -97,7 +97,7 @@ to what URL they apply. Here is how to change the entry for kernel.org
97
to "ssh".
98
99
------------
100
-% git config-set proxy.command '"ssh" for kernel.org' 'for kernel.org$'
100
+% git repo-config proxy.command '"ssh" for kernel.org' 'for kernel.org$'
101
------------
102
103
This makes sure that only the key/value pair for kernel.org is replaced.
@@ -105,7 +105,7 @@ This makes sure that only the key/value pair for kernel.org is replaced.
105
To delete the entry for renames, do
106
107
------------
108
-% git config-set --unset diff.renames
108
+% git repo-config --unset diff.renames
109
------------
110
111
If you want to delete an entry for a multivar (like proxy.command above),
@@ -114,45 +114,45 @@ you have to provide a regex matching the value of exactly one line.
114
To query the value for a given key, do
115
116
------------
117
-% git config-set --get core.filemode
117
+% git repo-config --get core.filemode
118
------------
119
120
or
121
122
------------
123
-% git config-set core.filemode
123
+% git repo-config core.filemode
124
------------
125
126
or, to query a multivar:
127
128
------------
129
-% git config-set --get proxy.command "for kernel.org$"
129
+% git repo-config --get proxy.command "for kernel.org$"
130
------------
131
132
If you want to know all the values for a multivar, do:
133
134
------------
135
-% git config-set --get-all proxy.command
135
+% git repo-config --get-all proxy.command
136
------------
137
138
If you like to live dangerous, you can replace *all* proxy.commands by a
139
new one with
140
141
------------
142
-% git config-set --replace-all proxy.command ssh
142
+% git repo-config --replace-all proxy.command ssh
143
------------
144
145
However, if you really only want to replace the line for the default proxy,
146
i.e. the one without a "for ..." postfix, do something like this:
147
148
------------
149
-% git config-set proxy.command ssh '! for '
149
+% git repo-config proxy.command ssh '! for '
150
------------
151
152
To actually match only values with an exclamation mark, you have to
153
154
------------
155
-% git config-set section.key value '[!]'
155
+% git repo-config section.key value '[!]'
156
------------
157
158
Documentation/git.txt
+3
-3
@@ -84,9 +84,6 @@ gitlink:git-checkout-index[1]::
84
gitlink:git-commit-tree[1]::
85
Creates a new commit object
86
87
-gitlink:git-config-set[1]::
88
- Set options in .git/config.
89
-
87
gitlink:git-hash-object[1]::
88
Computes the object ID from a file.
89
@@ -111,6 +108,9 @@ gitlink:git-prune-packed[1]::
108
gitlink:git-read-tree[1]::
109
Reads tree information into the directory index
110
111
+gitlink:git-repo-config[1]::
112
+ Get and set options in .git/config.
113
+
114
gitlink:git-unpack-objects[1]::
115
Unpacks objects out of a packed archive.
116
Makefile
+1
-1
@@ -130,7 +130,7 @@ PROGRAMS = \
130
git-unpack-objects$X git-update-index$X git-update-server-info$X \
131
git-upload-pack$X git-verify-pack$X git-write-tree$X \
132
git-update-ref$X git-symbolic-ref$X git-check-ref-format$X \
133
- git-name-rev$X git-pack-redundant$X git-config-set$X git-var$X
133
+ git-name-rev$X git-pack-redundant$X git-repo-config$X git-var$X
134
135
# what 'all' will build and 'install' will install.
136
ALL_PROGRAMS = $(PROGRAMS) $(SIMPLE_PROGRAMS) $(SCRIPTS) git$X
repo-config.c
renamed
+1
-1
@@ -2,7 +2,7 @@
2
#include <regex.h>
3
4
static const char git_config_set_usage[] =
5
-"git-config-set [--get | --get-all | --replace-all | --unset | --unset-all] name [value [value_regex]]";
5
+"git-repo-config [--get | --get-all | --replace-all | --unset | --unset-all] name [value [value_regex]]";
6
7
static char* key = NULL;
8
static char* value = NULL;
t/t1300-repo-config.sh
renamed
+26
-26
@@ -3,13 +3,13 @@
3
# Copyright (c) 2005 Johannes Schindelin
4
#
5
6
-test_description='Test git-config-set in different settings'
6
+test_description='Test git-repo-config in different settings'
7
8
. ./test-lib.sh
9
10
test -f .git/config && rm .git/config
11
12
-git-config-set core.penguin "little blue"
12
+git-repo-config core.penguin "little blue"
13
14
cat > expect << EOF
15
#
@@ -22,7 +22,7 @@ EOF
22
23
test_expect_success 'initial' 'cmp .git/config expect'
24
25
-git-config-set Core.Movie BadPhysics
25
+git-repo-config Core.Movie BadPhysics
26
27
cat > expect << EOF
28
#
@@ -36,7 +36,7 @@ EOF
36
37
test_expect_success 'mixed case' 'cmp .git/config expect'
38
39
-git-config-set Cores.WhatEver Second
39
+git-repo-config Cores.WhatEver Second
40
41
cat > expect << EOF
42
#
@@ -52,7 +52,7 @@ EOF
52
53
test_expect_success 'similar section' 'cmp .git/config expect'
54
55
-git-config-set CORE.UPPERCASE true
55
+git-repo-config CORE.UPPERCASE true
56
57
cat > expect << EOF
58
#
@@ -70,10 +70,10 @@ EOF
70
test_expect_success 'similar section' 'cmp .git/config expect'
71
72
test_expect_success 'replace with non-match' \
73
- 'git-config-set core.penguin kingpin !blue'
73
+ 'git-repo-config core.penguin kingpin !blue'
74
75
test_expect_success 'replace with non-match (actually matching)' \
76
- 'git-config-set core.penguin "very blue" !kingpin'
76
+ 'git-repo-config core.penguin "very blue" !kingpin'
77
78
cat > expect << EOF
79
#
@@ -106,7 +106,7 @@ EOF
106
cp .git/config .git/config2
107
108
test_expect_success 'multiple unset' \
109
- 'git-config-set --unset-all beta.haha'
109
+ 'git-repo-config --unset-all beta.haha'
110
111
cat > expect << EOF
112
[beta] ; silly comment # another comment
@@ -122,7 +122,7 @@ test_expect_success 'multiple unset is correct' 'cmp .git/config expect'
122
mv .git/config2 .git/config
123
124
test_expect_success '--replace-all' \
125
- 'git-config-set --replace-all beta.haha gamma'
125
+ 'git-repo-config --replace-all beta.haha gamma'
126
127
cat > expect << EOF
128
[beta] ; silly comment # another comment
@@ -136,7 +136,7 @@ EOF
136
137
test_expect_success 'all replaced' 'cmp .git/config expect'
138
139
-git-config-set beta.haha alpha
139
+git-repo-config beta.haha alpha
140
141
cat > expect << EOF
142
[beta] ; silly comment # another comment
@@ -150,7 +150,7 @@ EOF
150
151
test_expect_success 'really mean test' 'cmp .git/config expect'
152
153
-git-config-set nextsection.nonewline wow
153
+git-repo-config nextsection.nonewline wow
154
155
cat > expect << EOF
156
[beta] ; silly comment # another comment
@@ -165,8 +165,8 @@ EOF
165
166
test_expect_success 'really really mean test' 'cmp .git/config expect'
167
168
-test_expect_success 'get value' 'test alpha = $(git-config-set beta.haha)'
169
-git-config-set --unset beta.haha
168
+test_expect_success 'get value' 'test alpha = $(git-repo-config beta.haha)'
169
+git-repo-config --unset beta.haha
170
171
cat > expect << EOF
172
[beta] ; silly comment # another comment
@@ -180,7 +180,7 @@ EOF
180
181
test_expect_success 'unset' 'cmp .git/config expect'
182
183
-git-config-set nextsection.NoNewLine "wow2 for me" "for me$"
183
+git-repo-config nextsection.NoNewLine "wow2 for me" "for me$"
184
185
cat > expect << EOF
186
[beta] ; silly comment # another comment
@@ -196,18 +196,18 @@ EOF
196
test_expect_success 'multivar' 'cmp .git/config expect'
197
198
test_expect_success 'non-match' \
199
- 'git-config-set --get nextsection.nonewline !for'
199
+ 'git-repo-config --get nextsection.nonewline !for'
200
201
test_expect_success 'non-match value' \
202
- 'test wow = $(git-config-set --get nextsection.nonewline !for)'
202
+ 'test wow = $(git-repo-config --get nextsection.nonewline !for)'
203
204
test_expect_failure 'ambiguous get' \
205
- 'git-config-set --get nextsection.nonewline'
205
+ 'git-repo-config --get nextsection.nonewline'
206
207
test_expect_success 'get multivar' \
208
- 'git-config-set --get-all nextsection.nonewline'
208
+ 'git-repo-config --get-all nextsection.nonewline'
209
210
-git-config-set nextsection.nonewline "wow3" "wow$"
210
+git-repo-config nextsection.nonewline "wow3" "wow$"
211
212
cat > expect << EOF
213
[beta] ; silly comment # another comment
@@ -222,15 +222,15 @@ EOF
222
223
test_expect_success 'multivar replace' 'cmp .git/config expect'
224
225
-test_expect_failure 'ambiguous value' 'git-config-set nextsection.nonewline'
225
+test_expect_failure 'ambiguous value' 'git-repo-config nextsection.nonewline'
226
227
test_expect_failure 'ambiguous unset' \
228
- 'git-config-set --unset nextsection.nonewline'
228
+ 'git-repo-config --unset nextsection.nonewline'
229
230
test_expect_failure 'invalid unset' \
231
- 'git-config-set --unset somesection.nonewline'
231
+ 'git-repo-config --unset somesection.nonewline'
232
233
-git-config-set --unset nextsection.nonewline "wow3$"
233
+git-repo-config --unset nextsection.nonewline "wow3$"
234
235
cat > expect << EOF
236
[beta] ; silly comment # another comment
@@ -244,12 +244,12 @@ EOF
244
245
test_expect_success 'multivar unset' 'cmp .git/config expect'
246
247
-test_expect_failure 'invalid key' 'git-config-set inval.2key blabla'
247
+test_expect_failure 'invalid key' 'git-repo-config inval.2key blabla'
248
249
-test_expect_success 'correct key' 'git-config-set 123456.a123 987'
249
+test_expect_success 'correct key' 'git-repo-config 123456.a123 987'
250
251
test_expect_success 'hierarchical section' \
252
- 'git-config-set 1.2.3.alpha beta'
252
+ 'git-repo-config 1.2.3.alpha beta'
253
254
cat > expect << EOF
255
[beta] ; silly comment # another comment