Initial commit

This commit is contained in:
jiapengyu
2026-07-27 13:37:48 +08:00
commit ecba71e2a5
39123 changed files with 5989154 additions and 0 deletions
@@ -0,0 +1,3 @@
[core]
repositoryformatversion = 5
something = 2
@@ -0,0 +1,2 @@
[include]
path = config-included
@@ -0,0 +1,2 @@
[foo "bar"]
baz = huzzah
@@ -0,0 +1 @@
key = value
File diff suppressed because one or more lines are too long
+7
View File
@@ -0,0 +1,7 @@
# This is a test
; of different comments
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
+5
View File
@@ -0,0 +1,5 @@
# This one checks for case sensitivity
[this "that"]
other = true
[this "That"]
other = yes
+1
View File
@@ -0,0 +1 @@
[empty]
+5
View File
@@ -0,0 +1,5 @@
[remote "ab"]
url = git://github.com/libgit2/libgit2
url = git://git.example.com/libgit2
+13
View File
@@ -0,0 +1,13 @@
[some "section"]
test = hi ; comment
test2 = hello ; comment
test3 = welcome #comment
other = "hello! \" ; ; ; " ; more test
other2 = "cool! \" # # # " # more test
multi = "hi, this is a ; \
multiline comment # with ;\n special chars \
and other stuff !@#"
multi2 = "good, this is a ; \
multiline comment # with ;\n special chars \
and other stuff !@#" #^^^
back = "this is \ba phrase"
+2
View File
@@ -0,0 +1,2 @@
[core]
editor = \"C:/Program Files/Nonsense/bah.exe\" \"--some option\"
+4
View File
@@ -0,0 +1,4 @@
[a]
b=c
[d]
e = f
+3
View File
@@ -0,0 +1,3 @@
[core]
dummy2 = 7
global = 17
+3
View File
@@ -0,0 +1,3 @@
[core]
dummy2 = 28
system = 11
+3
View File
@@ -0,0 +1,3 @@
[core]
dummy2 = 7
global = 17
+5
View File
@@ -0,0 +1,5 @@
[core]
int32global = 28
int64global = 9223372036854775803
boolglobal = true
stringglobal = I'm a global config value!
+5
View File
@@ -0,0 +1,5 @@
[core]
int32global = -1
int64global = -2
boolglobal = false
stringglobal = don't find me!
+5
View File
@@ -0,0 +1,5 @@
; This one tests for multiline values
[this "That"]
and = one one one \
two two \
three three
+11
View File
@@ -0,0 +1,11 @@
[valid "[subsection]"]
something = a
; we don't allow anything after closing "
[sec "[subsec]/child"]
parent = grand
[sec2 "[subsec2]/child2"]
type = dvcs
[sec3 "escape\"quote"]
vcs = git
[sec4 "escaping\\slash"]
lib = git2
+3
View File
@@ -0,0 +1,3 @@
# A [section.subsection] header is case-insensitive
[section.SuBsection]
var = hello
+5
View File
@@ -0,0 +1,5 @@
# A variable name on its own is valid
[some.section]
variable
# A variable and '=' is accepted, but it's not considered true
variableeq =
+9
View File
@@ -0,0 +1,9 @@
# Test for number suffixes
[number]
simple = 1
k = 1k
kk = 1K
m = 1m
mm = 1M
g = 1g
gg = 1G
+5
View File
@@ -0,0 +1,5 @@
[valid "subsection"]
something = true
[something "else"]
something = false
+5
View File
@@ -0,0 +1,5 @@
[valid "subsection"]
something = a
; we don't allow anything after closing "
[sec "subsec"x]
bleh = blah
+9
View File
@@ -0,0 +1,9 @@
[core]
dummy2 = 42
verylong = 1
dummy = 1
[remote "ab"]
url = http://example.com/git/ab
[remote "abba"]
url = http://example.com/git/abba