summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b0bafe0)
raw | patch | inline | side by side (parent: b0bafe0)
author | Chris Shoemaker <c.shoemaker@cox.net> | |
Sat, 29 Oct 2005 21:46:41 +0000 (17:46 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 31 Oct 2005 01:28:01 +0000 (17:28 -0800) |
Removed unknown [--version] option.
Signed-off-by: Chris Shoemaker <c.shoemaker@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Chris Shoemaker <c.shoemaker@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-update-index.txt | patch | blob | history | |
update-index.c | patch | blob | history |
index 8b50efa4e6a4017edecacc1ed1c5f664c7c235fd..58b9e49af5f269f59b6e884430322cfca8673c75 100644 (file)
SYNOPSIS
--------
'git-update-index'
- [--add] [--remove] [--unmerged] [--refresh] [--replace]
+ [--add] [--remove | --force-remove] [--replace]
+ [--refresh [-q] [--unmerged] [--ignore-missing]]
[--cacheinfo <mode> <object> <file>]\*
[--chmod=(+|-)x]
- [--info-only]
- [--force-remove]
- [--stdin]
- [--index-info]
- [--ignore-missing]
- [-z]
+ [--info-only] [--index-info]
+ [-z] [--stdin]
+ [--verbose]
[--] [<file>]\*
DESCRIPTION
Looks at the current cache and checks to see if merges or
updates are needed by checking stat() information.
+-q::
+ Quiet. If --refresh finds that the cache needs an update, the
+ default behavior is to error out. This option makes
+ git-update-index continue anyway.
+
+--unmerged::
+ If --refresh finds unmerged changes in the cache, the default
+ behavior is to error out. This option makes git-update-index
+ continue anyway.
+
--ignore-missing::
Ignores missing files during a --refresh
--cacheinfo <mode> <object> <path>::
Directly insert the specified info into the cache.
+--index-info::
+ Read index info from stdin.
+
+--chmod=(+|-)x::
+ Set the execute permissions on the updated files.
+
--info-only::
Do not create objects in the object database for all
<file> arguments that follow this flag; just insert
read list of paths from the standard input. Paths are
separated by LF (i.e. one path per line) by default.
+--verbose::
+ Report what is being added and removed from index.
+
-z::
Only meaningful with `--stdin`; paths are separated with
NUL character instead of LF.
diff --git a/update-index.c b/update-index.c
index 661b86a979e7c75ea9b3ca9d030aebb44693ee04..5bbc3de2898caddfd019fac77c6a1daf922250cf 100644 (file)
--- a/update-index.c
+++ b/update-index.c
}
static const char update_index_usage[] =
-"git-update-index [-q] [--add] [--replace] [--remove] [--unmerged] [--refresh] [--cacheinfo] [--chmod=(+|-)x] [--info-only] [--force-remove] [--stdin] [--index-info] [--ignore-missing] [-z] [--version] [--] <file>...";
+"git-update-index [-q] [--add] [--replace] [--remove] [--unmerged] [--refresh] [--cacheinfo] [--chmod=(+|-)x] [--info-only] [--force-remove] [--stdin] [--index-info] [--ignore-missing] [-z] [--verbose] [--] <file>...";
int main(int argc, const char **argv)
{