1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-13 02:03:38 +02:00
home-manager/tests/modules/programs/git/git-expected.conf
Leah Amelia Chen fde2bc71d3
git: add alternate signing methods
The Git module now supports SSH and X.509 signing in addition to
OpenPGP/GnuPG, via setting the `programs.git.signing.format` option.
It defaults to `openpgp` for now as a backwards compatibility measure,
but I feel like we shouldn't enforce GPG as the default on everyone,
especially for people who use SSH signing like me.

Accordingly, `programs.git.signing.gpgPath` has been renamed to
`programs.git.signing.signer`, as now the signer binary is not
restricted to GnuPG. Users should only get a warning and everything
should continue to work.

Fixes #4221, supersedes #4235
2023-11-13 13:26:47 +01:00

68 lines
1.1 KiB
Plaintext

[alias]
a1 = "foo"
a2 = "baz"
escapes = "\"\\n\t"
[commit]
gpgSign = true
[core]
pager = "@delta@/bin/delta"
[delta]
features = "decorations"
whitespace-error-style = "22 reverse"
[delta "decorations"]
commit-decoration-style = "bold yellow box ul"
file-decoration-style = "none"
file-style = "bold yellow ul"
[extra]
boolean = true
integer = 38
multiple = 1
multiple = 2
name = "value"
[extra "backcompat.with.dots"]
previously = "worked"
[extra "subsection"]
value = "test"
[filter "lfs"]
clean = "git-lfs clean -- %f"
process = "git-lfs filter-process"
required = true
smudge = "git-lfs smudge -- %f"
[gpg]
format = "openpgp"
[gpg "openpgp"]
program = "path-to-gpg"
[interactive]
diffFilter = "@delta@/bin/delta --color-only"
[tag]
gpgSign = true
[user]
email = "user@example.org"
name = "John Doe"
signingKey = "00112233445566778899AABBCCDDEEFF"
[include]
path = "~/path/to/config.inc"
[includeIf "gitdir:~/src/dir"]
path = "~/path/to/conditional.inc"
[includeIf "gitdir:~/src/dir"]
path = "@git_include_path@"
[includeIf "gitdir:~/src/otherproject"]
path = "@git_named_include_path@"