author | Shawn Pearce <spearce@spearce.org> | |
Wed, 1 Mar 2006 02:43:33 +0000 (21:43 -0500) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 1 Mar 2006 09:15:31 +0000 (01:15 -0800) | ||
commit | 9debe63d10e476b96ff550d550df344a68b240e8 | |
tree | 2a4366f0983c0df1436def2bb7ab530b39df1aa0 | tree | snapshot |
parent | 858cbfbabe4ede5f5eba32041eb7448319e53e2a | commit | diff |
Teach git-checkout-index to read filenames from stdin.
Since git-checkout-index is often used from scripts which
may have a stream of filenames they wish to checkout it is
more convenient to use --stdin than xargs. On platforms
where fork performance is currently sub-optimal and
the length of a command line is limited (*cough* Cygwin
*cough*) running a single git-checkout-index process for
a large number of files beats spawning it multiple times
from xargs.
File names are still accepted on the command line if
--stdin is not supplied. Nothing is performed if no files
are supplied on the command line or by stdin.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Since git-checkout-index is often used from scripts which
may have a stream of filenames they wish to checkout it is
more convenient to use --stdin than xargs. On platforms
where fork performance is currently sub-optimal and
the length of a command line is limited (*cough* Cygwin
*cough*) running a single git-checkout-index process for
a large number of files beats spawning it multiple times
from xargs.
File names are still accepted on the command line if
--stdin is not supplied. Nothing is performed if no files
are supplied on the command line or by stdin.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-checkout-index.txt | diff | blob | history | |
checkout-index.c | diff | blob | history |