.\" ** You probably do not want to edit this file directly ** .\" It was generated using the DocBook XSL Stylesheets (version 1.69.1). .\" Instead of manually editing it, you probably should edit the DocBook XML .\" source for it and then use the DocBook XSL Stylesheets to regenerate it. .TH "GIT\-ANNOTATE" "1" "09/19/2007" "Git 1.5.3.2" "Git Manual" .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .SH "NAME" git\-annotate \- Annotate file lines with commit info .SH "SYNOPSIS" git\-annotate [options] file [revision] .SH "DESCRIPTION" Annotates each line in the given file with information from the commit which introduced the line. Optionally annotate from a given revision. .SH "OPTIONS" .TP \-b Show blank SHA\-1 for boundary commits. This can also be controlled via the blame.blankboundary config option. .TP \-\-root Do not treat root commits as boundaries. This can also be controlled via the blame.showroot config option. .TP \-\-show\-stats Include additional statistics at the end of blame output. .TP \-L , Annotate only the given line range. and can take one of these forms: .RS .TP 3 \(bu number If or is a number, it specifies an absolute line number (lines count from 1). .TP \(bu /regex/ This form will use the first line matching the given POSIX regex. If is a regex, it will search starting at the line given by . .TP \(bu +offset or \-offset This is only valid for and will specify a number of lines before or after the line given by . .RE .TP \-l Show long rev (Default: off). .TP \-t Show raw timestamp (Default: off). .TP \-S Use revs from revs\-file instead of calling \fBgit\-rev\-list\fR(1). .TP \-p, \-\-porcelain Show in a format designed for machine consumption. .TP \-\-incremental Show the result incrementally in a format designed for machine consumption. .TP \-\-contents When is not specified, the command annotates the changes starting backwards from the working tree copy. This flag makes the command pretend as if the working tree copy has the contents of he named file (specify \- to make the command read from the standard input). .TP \-M|| Detect moving lines in the file as well. When a commit moves a block of lines in a file (e.g. the original file has A and then B, and the commit changes it to B and then A), traditional \fIblame\fR algorithm typically blames the lines that were moved up (i.e. B) to the parent and assigns blame to the lines that were moved down (i.e. A) to the child commit. With this option, both groups of lines are blamed on the parent. is optional but it is the lower bound on the number of alphanumeric characters that git must detect as moving within a file for it to associate those lines with the parent commit. .TP \-C|| In addition to \-M, detect lines copied from other files that were modified in the same commit. This is useful when you reorganize your program and move code around across files. When this option is given twice, the command looks for copies from all other files in the parent for the commit that creates the file in addition. is optional but it is the lower bound on the number of alphanumeric characters that git must detect as moving between files for it to associate those lines with the parent commit. .TP \-h, \-\-help Show help message. .SH "SEE ALSO" \fBgit\-blame\fR(1) .SH "AUTHOR" Written by Ryan Anderson . .SH "GIT" Part of the \fBgit\fR(7) suite