author | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 11 Nov 2007 07:29:41 +0000 (02:29 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 12 Nov 2007 01:09:55 +0000 (17:09 -0800) | ||
commit | 27350891de59608d4db689cf0851f7e49158a6e3 | |
tree | 013cb5be87b3220a6ddd412deb60d79319667911 | tree | snapshot |
parent | b73a4397590df9582dd1c994cac30e55e26b0b1e | commit | diff |
rev-list: Introduce --quiet to avoid /dev/null redirects
Some uses of git-rev-list are to run it with --objects to see if
a range of objects between two or more commits is fully connected
or not. In such a case the caller doesn't care about the actual
object names or hash hints so formatting this data only for it to
be dumped to /dev/null by a redirect is a waste of CPU time. If
all the caller needs is the exit status then --quiet can be used
to bypass the commit and object formatting.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Some uses of git-rev-list are to run it with --objects to see if
a range of objects between two or more commits is fully connected
or not. In such a case the caller doesn't care about the actual
object names or hash hints so formatting this data only for it to
be dumped to /dev/null by a redirect is a waste of CPU time. If
all the caller needs is the exit status then --quiet can be used
to bypass the commit and object formatting.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Documentation/git-rev-list.txt | diff | blob | history | |
builtin-rev-list.c | diff | blob | history |