225
226
--all::
227
228
- Pretend as if all the refs in `$GIT_DIR/refs/` are listed on the
228
+ Pretend as if all the refs in `refs/` are listed on the
229
command line as '<commit>'.
230
231
--branches[=pattern]::
232
233
- Pretend as if all the refs in `$GIT_DIR/refs/heads` are listed
233
+ Pretend as if all the refs in `refs/heads` are listed
234
on the command line as '<commit>'. If `pattern` is given, limit
235
branches to ones matching given shell glob. If pattern lacks '?',
236
'*', or '[', '/*' at the end is implied.
237
238
--tags[=pattern]::
239
240
- Pretend as if all the refs in `$GIT_DIR/refs/tags` are listed
240
+ Pretend as if all the refs in `refs/tags` are listed
241
on the command line as '<commit>'. If `pattern` is given, limit
242
tags to ones matching given shell glob. If pattern lacks '?', '*',
243
or '[', '/*' at the end is implied.
244
245
--remotes[=pattern]::
246
247
- Pretend as if all the refs in `$GIT_DIR/refs/remotes` are listed
247
+ Pretend as if all the refs in `refs/remotes` are listed
248
on the command line as '<commit>'. If `pattern`is given, limit
249
remote tracking branches to ones matching given shell glob.
250
If pattern lacks '?', '*', or '[', '/*' at the end is implied.
259
ifndef::git-rev-list[]
260
--bisect::
261
262
- Pretend as if the bad bisection ref `$GIT_DIR/refs/bisect/bad`
262
+ Pretend as if the bad bisection ref `refs/bisect/bad`
263
was listed and as if it was followed by `--not` and the good
264
- bisection refs `$GIT_DIR/refs/bisect/good-*` on the command
264
+ bisection refs `refs/bisect/good-*` on the command
265
line.
266
endif::git-rev-list[]
267
561
562
Limit output to the one commit object which is roughly halfway between
563
included and excluded commits. Note that the bad bisection ref
564
-`$GIT_DIR/refs/bisect/bad` is added to the included commits (if it
565
-exists) and the good bisection refs `$GIT_DIR/refs/bisect/good-*` are
564
+`refs/bisect/bad` is added to the included commits (if it
565
+exists) and the good bisection refs `refs/bisect/good-*` are
566
added to the excluded commits (if they exist). Thus, supposing there
567
-are no refs in `$GIT_DIR/refs/bisect/`, if
567
+are no refs in `refs/bisect/`, if
568
569
-----------------------------------------------------------------------
570
$ git rev-list --bisect foo ^bar ^baz
585
--bisect-vars::
586
587
This calculates the same as `--bisect`, except that refs in
588
-`$GIT_DIR/refs/bisect/` are not used, and except that this outputs
588
+`refs/bisect/` are not used, and except that this outputs
589
text ready to be eval'ed by the shell. These lines will assign the
590
name of the midpoint revision to the variable `bisect_rev`, and the
591
expected number of commits to be tested after `bisect_rev` is tested
599
600
This outputs all the commit objects between the included and excluded
601
commits, ordered by their distance to the included and excluded
602
-commits. Refs in `$GIT_DIR/refs/bisect/` are not used. The farthest
602
+commits. Refs in `refs/bisect/` are not used. The farthest
603
from them is displayed first. (This is the only one displayed by
604
`--bisect`.)
605
+