X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=Documentation%2Fgit-update-index.txt;h=6fa1d980f6144a51b7adc865baa6b1dbf5e753d0;hb=9e48b389990c0201487e58f3bac32734a59a7e89;hp=8d55659edefe07fed2fd8dbd0e7bf716c460e998;hpb=dbc37438687e110697574d175e4eca5f9cbeae81;p=git.git diff --git a/Documentation/git-update-index.txt b/Documentation/git-update-index.txt index 8d55659e..6fa1d980 100644 --- a/Documentation/git-update-index.txt +++ b/Documentation/git-update-index.txt @@ -1,6 +1,5 @@ git-update-index(1) =================== -v0.1, May 2005 NAME ---- @@ -15,6 +14,7 @@ SYNOPSIS [--force-remove] [--cacheinfo ]\* [--info-only] + [-z] [--stdin] [--] []\* DESCRIPTION @@ -65,6 +65,15 @@ OPTIONS that conflicts with the entry being added are automatically removed with warning messages. +--stdin:: + Instead of taking list of paths from the command line, + read list of paths from the standard input. Paths are + separated by LF (i.e. one path per line) by default. + +-z:: + Only meaningful with `--stdin`; paths are separated with + NUL character instead of LF. + --:: Do not interpret any more arguments as options. @@ -92,7 +101,7 @@ Using --cacheinfo or --info-only current working directory. This is useful for minimum-checkout merging. - To pretend you have a file with mode and sha1 at path, say: +To pretend you have a file with mode and sha1 at path, say: $ git-update-index --cacheinfo mode sha1 path