From 66a638db9c47858707b5c81564e0570a72a26549 Mon Sep 17 00:00:00 2001 From: Stefano Probst Date: Sat, 24 Oct 2020 10:03:49 +0200 Subject: [PATCH] Add Git Config syntax test file cc sharkdp/bat#1213 --- .../highlighted/Git Config/text.gitconfig | 107 ++++++++++++++++++ .../syntax-tests/source/Git Config/LICENSE.md | 1 + .../source/Git Config/text.gitconfig | 107 ++++++++++++++++++ 3 files changed, 215 insertions(+) create mode 100644 tests/syntax-tests/highlighted/Git Config/text.gitconfig create mode 100644 tests/syntax-tests/source/Git Config/LICENSE.md create mode 100644 tests/syntax-tests/source/Git Config/text.gitconfig diff --git a/tests/syntax-tests/highlighted/Git Config/text.gitconfig b/tests/syntax-tests/highlighted/Git Config/text.gitconfig new file mode 100644 index 0000000000..91f3b08ca8 --- /dev/null +++ b/tests/syntax-tests/highlighted/Git Config/text.gitconfig @@ -0,0 +1,107 @@ +[alias] + br = branch + branch = branch -a + c = clone --recursive + ci = commit + cl = clone + co = checkout + contributors = shortlog --summary --numbered + lg = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' + remote = remote -v + st = status + tag = tag -l +[apply] + whitespace = fix +[color] + ui = true +[color "branch"] + current = yellow + local = yellow + remote = green +[color "diff"] + commit = yellow bold + frag = magenta bold + meta = yellow + new = green bold + old = red bold + whitespace = red reverse +[color "diff-highlight"] + newHighlight = green bold 22 + newNormal = green bold + oldHighlight = red bold 52 + oldNormal = red bold +[color "status"] + added = green + changed = yellow + untracked = cyan +[commit] + gpgsign = true +[core] + editor = /usr/bin/vim + # global exclude + excludesfile = /home/frank/.config/git/ignore + pager = delta + ; broken on old machines + untrackedCache = true +[credential] + helper = store +[delta] + features = line-numbers decorations + max-line-length = 1024 + whitespace-error-style = 22 reverse +[delta "decorations"] + commit-decoration-style = bold yellow box ul + file-decoration-style = none + file-style = bold yellow + syntax-theme = gruvbox +[diff] + submodule = diff + algorithm = histogram + renames = copies +[difftool] + prompt = false +[difftool "wrapper"] + binary = true + cmd = git-difftool-wrapper \"$LOCAL\" \"$REMOTE\" +[diff "pdfconv"] + textconv = pdftohtml -stdout +[fetch] + negotiationAlgorithm = skipping + parallel = 0 +[help] + autocorrect = 1 +[index] + version = 4 +[interactive] + diffFilter = delta --color-only +[merge] + log = true +[protocol] + version = 2 +[pull] + rebase = true +[push] + default = current + recurseSubmodules = on-demand +[rebase] + autoStash = true +[rerere] + autoUpdate = true + enabled = true +[sequence] + editor = interactive-rebase-tool +[submodule] + fetchJobs = 0 +[tag] + gpgSign = true + sort = -version:refname +[url "git@gist.github.com:"] + insteadOf = gist: + pushInsteadOf = https://gist.github.com/ +[url "git@github.com:"] + insteadOf = gh: + pushInsteadOf = https://github.com/ +[user] + email = f.nord@example.com + name = Frank Nord + signingkey = AAAAAAAAAAAAAAAA diff --git a/tests/syntax-tests/source/Git Config/LICENSE.md b/tests/syntax-tests/source/Git Config/LICENSE.md new file mode 100644 index 0000000000..4d51ec63f2 --- /dev/null +++ b/tests/syntax-tests/source/Git Config/LICENSE.md @@ -0,0 +1 @@ +The `test.gitconfig` file has been added from https://github.com/sharkdp/bat/pull/1336#issuecomment-715905807. Its "free to use". \ No newline at end of file diff --git a/tests/syntax-tests/source/Git Config/text.gitconfig b/tests/syntax-tests/source/Git Config/text.gitconfig new file mode 100644 index 0000000000..45de0fe53c --- /dev/null +++ b/tests/syntax-tests/source/Git Config/text.gitconfig @@ -0,0 +1,107 @@ +[alias] + br = branch + branch = branch -a + c = clone --recursive + ci = commit + cl = clone + co = checkout + contributors = shortlog --summary --numbered + lg = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' + remote = remote -v + st = status + tag = tag -l +[apply] + whitespace = fix +[color] + ui = true +[color "branch"] + current = yellow + local = yellow + remote = green +[color "diff"] + commit = yellow bold + frag = magenta bold + meta = yellow + new = green bold + old = red bold + whitespace = red reverse +[color "diff-highlight"] + newHighlight = green bold 22 + newNormal = green bold + oldHighlight = red bold 52 + oldNormal = red bold +[color "status"] + added = green + changed = yellow + untracked = cyan +[commit] + gpgsign = true +[core] + editor = /usr/bin/vim + # global exclude + excludesfile = /home/frank/.config/git/ignore + pager = delta + ; broken on old machines + untrackedCache = true +[credential] + helper = store +[delta] + features = line-numbers decorations + max-line-length = 1024 + whitespace-error-style = 22 reverse +[delta "decorations"] + commit-decoration-style = bold yellow box ul + file-decoration-style = none + file-style = bold yellow + syntax-theme = gruvbox +[diff] + submodule = diff + algorithm = histogram + renames = copies +[difftool] + prompt = false +[difftool "wrapper"] + binary = true + cmd = git-difftool-wrapper \"$LOCAL\" \"$REMOTE\" +[diff "pdfconv"] + textconv = pdftohtml -stdout +[fetch] + negotiationAlgorithm = skipping + parallel = 0 +[help] + autocorrect = 1 +[index] + version = 4 +[interactive] + diffFilter = delta --color-only +[merge] + log = true +[protocol] + version = 2 +[pull] + rebase = true +[push] + default = current + recurseSubmodules = on-demand +[rebase] + autoStash = true +[rerere] + autoUpdate = true + enabled = true +[sequence] + editor = interactive-rebase-tool +[submodule] + fetchJobs = 0 +[tag] + gpgSign = true + sort = -version:refname +[url "git@gist.github.com:"] + insteadOf = gist: + pushInsteadOf = https://gist.github.com/ +[url "git@github.com:"] + insteadOf = gh: + pushInsteadOf = https://github.com/ +[user] + email = f.nord@example.com + name = Frank Nord + signingkey = AAAAAAAAAAAAAAAA \ No newline at end of file