Server IP : 85.214.239.14 / Your IP : 18.117.145.41 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/share/doc/git/contrib/contacts/ |
Upload File : |
git-contacts(1) =============== NAME ---- git-contacts - List people who might be interested in a set of changes SYNOPSIS -------- [verse] 'git contacts' (<patch>|<range>|<rev>)... DESCRIPTION ----------- Given a set of changes, specified as patch files or revisions, determine people who might be interested in those changes. This is done by consulting the history of each patch or revision hunk to find people mentioned by commits which touched the lines of files under consideration. Input consists of one or more patch files or revision arguments. A revision argument can be a range or a single `<rev>` which is interpreted as `<rev>..HEAD`, thus the same revision arguments are accepted as for linkgit:git-format-patch[1]. Patch files and revision arguments can be combined in the same invocation. This command can be useful for determining the list of people with whom to discuss proposed changes, or for finding the list of recipients to Cc: when submitting a patch series via `git send-email`. For the latter case, `git contacts` can be used as the argument to `git send-email`'s `--cc-cmd` option. DISCUSSION ---------- `git blame` is invoked for each hunk in a patch file or revision. For each commit mentioned by `git blame`, the commit message is consulted for people who authored, reviewed, signed, acknowledged, or were Cc:'d. Once the list of participants is known, each person's relevance is computed by considering how many commits mentioned that person compared with the total number of commits under consideration. The final output consists only of participants who exceed a minimum threshold of participation. OUTPUT ------ For each person of interest, a single line is output, terminated by a newline. If the person's name is known, ``Name $$<user@host>$$'' is printed; otherwise only ``$$<user@host>$$'' is printed. EXAMPLES -------- * Consult patch files: + ------------ $ git contacts feature/*.patch ------------ * Revision range: + ------------ $ git contacts R1..R2 ------------ * From a single revision to `HEAD`: + ------------ $ git contacts origin ------------ * Helper for `git send-email`: + ------------ $ git send-email --cc-cmd='git contacts' feature/*.patch ------------ LIMITATIONS ----------- Several conditions controlling a person's significance are currently hard-coded, such as minimum participation level (10%), blame date-limiting (5 years), and `-C` level for detecting moved and copied lines (a single `-C`). In the future, these conditions may become configurable. GIT --- Part of the linkgit:git[1] suite