summaryrefslogtreecommitdiffstats
path: root/CONTRIBUTING.d/git
blob: 4f1003a61165d525525637e5b17d536c623d54af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Name
       Git - instructions for configuring git(1)

Description
   git-diff(1), gitattributes(5)
       To produce useful hunk contexts in manual pages, we need to hack
       git(1)'s idea of a function name, and also to tell git what is a
       manual page.

           $ git config --global diff.man.xfuncname '^\.S[SHsh] .*$';
           $ echo '*.[0-9]* diff=man' >>~/.config/git/attributes;

   git-format-patch(1)
       Send patches to the right addresses.

           $ git config --local format.to 'Alejandro Colomar <alx@kernel.org>';
           $ git config --local format.cc '<linux-man@vger.kernel.org>';

   git-send-email(1)
       If mutt(1) or neomutt(1) are configured in the system,
       git-send-email(1) can be configured to use any of them as a
       driver.  Recent versions of neomutt(1) can enable crypto with -C.

           $ git config --global \
                   sendemail.sendmailcmd 'neomutt -C -H - && true';
       or
           $ git config --global sendemail.sendmailcmd 'mutt -H - && true';

See also
       git-config(1)
       git-diff(1)
       git-format-patch(1)
       git-send-email(1)
       gitattributes(5)
       mutt(1)
       neomutt(1)

       CONTRIBUTING.d/*

       <https://git-send-email.io/>
       <https://neomutt.org/feature/cli-crypto>