add -p: allow line selection to be inverted
[gitweb.git] / Documentation / git-add.txt
index 965e192a091313a4f3843e475e2a7bca2720f7b8..01ff4d7d24b50a57a99999e040d244f338809c60 100644 (file)
@@ -342,7 +342,8 @@ deletion labelled with a number and you will be prompted to enter which
 lines you wish to select. Individual line numbers should be separated by
 a space or comma, to specify a range of lines use a dash between
 them. If the upper bound of a range of lines is omitted it defaults to
-the last line.
+the last line. To invert the selection prefix it with "-" so "-3-5,8"
+will select everything except lines 3, 4, 5 and 8.
 +
 After deciding the fate for all hunks, if there is any hunk
 that was chosen, the index is updated with the selected hunks.