diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-04-23 10:28:59 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-05-01 12:39:11 -0400 |
commit | 8b972da068708a8b17f3ab153ea940690ca49ca9 (patch) | |
tree | 7036b0bc6093b76ef541af8db335a86101589d85 /etc/git | |
parent | 0eddeb9896985e4139f412e41991ac5633a104ba (diff) | |
download | guix-8b972da068708a8b17f3ab153ea940690ca49ca9.tar.gz guix-8b972da068708a8b17f3ab153ea940690ca49ca9.zip |
Makefile.am: Auto-configure Git on 'make'.
This means we do not need to worry anymore about manually syncing the pre-push
git hook or the Guix-provided git configuration.
* etc/git/gitconfig: Augment configuration template with useful options to
allow for auto-configuration.
* Makefile.am (.git/hooks/pre-push, .git/config): New targets.
(nodist_noinst_DATA): New primary variable holding the above targets.
Diffstat (limited to 'etc/git')
-rw-r--r-- | etc/git/gitconfig | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/etc/git/gitconfig b/etc/git/gitconfig index c9ebdc8fa8..831fbce6e7 100644 --- a/etc/git/gitconfig +++ b/etc/git/gitconfig @@ -1,5 +1,21 @@ +[commit] + gpgsign = true + [diff "scheme"] xfuncname = "^(\\(define.*)$" [diff "texinfo"] xfuncname = "^@node[[:space:]]+([^,]+).*$" + +[format] + forceinbodyfrom = true # help preserve commit authorship + thread = shallow + useAutoBase = true + +[pull] + rebase = true + +[sendemail] + to = guix-patches@gnu.org + headerCmd = etc/teams.scm cc-members-header-cmd + thread = no |