diff options
author | Junio C Hamano <junio@hera.kernel.org> | 2006-04-29 07:02:01 +0000 |
---|---|---|
committer | Junio C Hamano <junio@hera.kernel.org> | 2006-04-29 07:02:01 +0000 |
commit | c8d88c2181b2e1675c5057ec9446be2f6f7529b3 (patch) | |
tree | ff8704aff72f29d72cb8f8ddcf9b9066cbb54478 /git-update-index.txt | |
parent | 6de0ecdcce3d89e64a763ff208d44a8e65e5b332 (diff) | |
download | git-htmldocs-c8d88c2181b2e1675c5057ec9446be2f6f7529b3.tar.gz |
Autogenerated HTML docs for v1.3.1-g8971
Diffstat (limited to 'git-update-index.txt')
-rw-r--r-- | git-update-index.txt | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/git-update-index.txt b/git-update-index.txt index 0a1b0ad56..d4137fc87 100644 --- a/git-update-index.txt +++ b/git-update-index.txt @@ -247,34 +247,33 @@ To update and refresh only the files already checked out: $ git-checkout-index -n -f -a && git-update-index --ignore-missing --refresh ---------------- -On an inefficient filesystem with `core.ignorestat` set: - +On an inefficient filesystem with `core.ignorestat` set:: ++ ------------ -$ git update-index --really-refresh <1> -$ git update-index --no-assume-unchanged foo.c <2> -$ git diff --name-only <3> +$ git update-index --really-refresh <1> +$ git update-index --no-assume-unchanged foo.c <2> +$ git diff --name-only <3> $ edit foo.c -$ git diff --name-only <4> +$ git diff --name-only <4> M foo.c -$ git update-index foo.c <5> -$ git diff --name-only <6> +$ git update-index foo.c <5> +$ git diff --name-only <6> $ edit foo.c -$ git diff --name-only <7> -$ git update-index --no-assume-unchanged foo.c <8> -$ git diff --name-only <9> +$ git diff --name-only <7> +$ git update-index --no-assume-unchanged foo.c <8> +$ git diff --name-only <9> M foo.c - -<1> forces lstat(2) to set "assume unchanged" bits for paths - that match index. +------------ ++ +<1> forces lstat(2) to set "assume unchanged" bits for paths that match index. <2> mark the path to be edited. <3> this does lstat(2) and finds index matches the path. -<4> this does lstat(2) and finds index does not match the path. +<4> this does lstat(2) and finds index does *not* match the path. <5> registering the new version to index sets "assume unchanged" bit. <6> and it is assumed unchanged. <7> even after you edit it. <8> you can tell about the change after the fact. <9> now it checks with lstat(2) and finds it has been changed. ------------- Configuration |