-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When setting values using the `git config --set` command, git formats the file a bit differently. This changes the output so it maps to that format. Differences: * each `key = value` in a section is prefixed by a tab character * the `=` between the key and the value is surrounded by spaces
- Loading branch information
Showing
6 changed files
with
39 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[user] | ||
email = [email protected] | ||
name = John Doe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
[alias] | ||
a1=foo | ||
a2=baz | ||
a1 = foo | ||
a2 = baz | ||
|
||
[commit] | ||
gpgSign=true | ||
gpgSign = true | ||
|
||
[extra] | ||
boolean=true | ||
integer=38 | ||
multiple=1 | ||
multiple=2 | ||
name=value | ||
boolean = true | ||
integer = 38 | ||
multiple = 1 | ||
multiple = 2 | ||
name = value | ||
|
||
[extra "backcompat.with.dots"] | ||
previously=worked | ||
previously = worked | ||
|
||
[extra "subsection"] | ||
value=test | ||
value = test | ||
|
||
[filter "lfs"] | ||
clean=git-lfs clean -- %f | ||
process=git-lfs filter-process | ||
required=true | ||
smudge=git-lfs smudge -- %f | ||
clean = git-lfs clean -- %f | ||
process = git-lfs filter-process | ||
required = true | ||
smudge = git-lfs smudge -- %f | ||
|
||
[gpg] | ||
program=path-to-gpg | ||
program = path-to-gpg | ||
|
||
[user] | ||
email=[email protected] | ||
name=John Doe | ||
signingKey=00112233445566778899AABBCCDDEEFF | ||
email = [email protected] | ||
name = John Doe | ||
signingKey = 00112233445566778899AABBCCDDEEFF | ||
|
||
[include] | ||
path=~/path/to/config.inc | ||
path = ~/path/to/config.inc | ||
|
||
[includeIf "gitdir:~/src/dir"] | ||
path=~/path/to/conditional.inc | ||
path = ~/path/to/conditional.inc | ||
|
||
[includeIf "gitdir:~/src/dir"] | ||
path=@git_include_path@ | ||
path = @git_include_path@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
[sendemail "hm-account"] | ||
from=[email protected] | ||
smtpEncryption=tls | ||
smtpServer=smtp.example.org | ||
smtpUser=home.manager.jr | ||
from = [email protected] | ||
smtpEncryption = tls | ||
smtpServer = smtp.example.org | ||
smtpUser = home.manager.jr | ||
|
||
[sendemail "[email protected]"] | ||
from=[email protected] | ||
smtpEncryption=tls | ||
smtpServer=smtp.example.com | ||
smtpUser=home.manager | ||
from = [email protected] | ||
smtpEncryption = tls | ||
smtpServer = smtp.example.com | ||
smtpUser = home.manager | ||
|
||
[user] | ||
email=[email protected] | ||
name=H. M. Test | ||
email = [email protected] | ||
name = H. M. Test |
4 changes: 2 additions & 2 deletions
4
tests/modules/programs/git/git-with-str-extra-config-expected.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
This can be anything. | ||
|
||
[user] | ||
email=[email protected] | ||
name=John Doe | ||
email = [email protected] | ||
name = John Doe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters