diff options
author | Jon Loeliger <jdl@freescale.com> | 2005-12-05 23:13:03 -0600 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-12-05 21:47:16 -0800 |
commit | 61f693bd5a2ab4d830aad6fce0a1c70863f38009 (patch) | |
tree | 896b9aead36f45bffcfb86f6d4ef9753b4a4a876 /Documentation/git-update-index.txt | |
parent | 23c99d84601316c1e51ebc1f0b9bec5cddd011fb (diff) | |
download | git-61f693bd5a2ab4d830aad6fce0a1c70863f38009.tar.gz git-61f693bd5a2ab4d830aad6fce0a1c70863f38009.tar.xz |
Added documentation for few missing options.
More $ shell prompts in examples.
Minor English grammar improvements.
Added a few "See Also"s.
Use back-ticks on more command examples.
Signed-off-by: Jon Loeliger <jdl@freescale.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation/git-update-index.txt')
-rw-r--r-- | Documentation/git-update-index.txt | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/Documentation/git-update-index.txt b/Documentation/git-update-index.txt index fdcb8bea7..e4678cd28 100644 --- a/Documentation/git-update-index.txt +++ b/Documentation/git-update-index.txt @@ -123,7 +123,9 @@ merging. To pretend you have a file with mode and sha1 at path, say: - $ git-update-index --cacheinfo mode sha1 path +---------------- +$ git-update-index --cacheinfo mode sha1 path +---------------- '--info-only' is used to register files without placing them in the object database. This is useful for status-only repositories. @@ -138,7 +140,9 @@ Examples -------- To update and refresh only the files already checked out: - git-checkout-index -n -f -a && git-update-index --ignore-missing --refresh +---------------- +$ git-checkout-index -n -f -a && git-update-index --ignore-missing --refresh +---------------- Configuration @@ -146,12 +150,18 @@ Configuration The command honors `core.filemode` configuration variable. If your repository is on an filesystem whose executable bits are -unreliable, this should be set to 'false'. This causes the -command to ignore differences in file modes recorded in the -index and the file mode on the filesystem if they differ only on +unreliable, this should be set to 'false' (see gitlink:git-repo-config[1]). +This causes the command to ignore differences in file modes recorded +in the index and the file mode on the filesystem if they differ only on executable bit. On such an unfortunate filesystem, you may need to use `git-update-index --chmod=`. + +See Also +-------- +gitlink:git-repo-config[1] + + Author ------ Written by Linus Torvalds <torvalds@osdl.org> |