Skip to main content
The annotate command shows who last modified each line of a file, along with the commit ID and date. dv blame is an alias for this command.
dv annotate <path> [-L <start,end>]
<path> is the file to show annotation information for. [-L <start,end>] limits the output to a specific line range. For example, -L 10,20 shows only lines 10 through 20. For each line, the output includes:
  • Commit ID - the commit that last changed the line
  • Author - who made the change
  • Date - when the change was made
  • Line number and content - the current line text
For example, to see who last modified each line in a file:
dv annotate src/main.py
To see annotation for a specific range of lines:
dv annotate src/main.py -L 10,20