Skip to content

Commit 88184c1

Browse files
asheidukgitster
authored andcommitted
doc: add note about shell quoting to revision.txt
Signed-off-by: Andreas Heiduk <[email protected]> Reviewed-by: Junio C Hamano <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 43d7f2d commit 88184c1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Documentation/revisions.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ syntax. Here are various ways to spell object names. The
77
ones listed near the end of this list name trees and
88
blobs contained in a commit.
99

10+
NOTE: This document shows the "raw" syntax as seen by git. The shell
11+
and other UIs might require additional quoting to protect special
12+
characters and to avoid word splitting.
13+
1014
'<sha1>', e.g. 'dae86e1950b1277e545cee180551750029cfe735', 'dae86e'::
1115
The full SHA-1 object name (40-byte hexadecimal string), or
1216
a leading substring that is unique within the repository.
@@ -186,6 +190,8 @@ existing tag object.
186190
is matched. ':/!-foo' performs a negative match, while ':/!!foo' matches a
187191
literal '!' character, followed by 'foo'. Any other sequence beginning with
188192
':/!' is reserved for now.
193+
Depending on the given text, the shell's word splitting rules might
194+
require additional quoting.
189195

190196
'<rev>:<path>', e.g. 'HEAD:README', ':README', 'master:./README'::
191197
A suffix ':' followed by a path names the blob or tree

0 commit comments

Comments
 (0)