Re: clarification on git-update-index --remove

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"David Tweed" <david.tweed@xxxxxxxxx> writes:

> --remove::
> 	If a specified file is in the index but is missing then it's
> 	removed.
> 	Default behavior is to ignore removed file.

If necessary, better rewording to remove confusion is very much
appreciated.

"update-index <path>..." without options (that is "Default
behaviour") updates the index using the contents of the named
<path> found on the filesystem.  It does _not_ add new paths to
the index, nor remove paths (that exists in the index) from the
index.

Giving --add allows new paths to be added to the index if named
paths are found on the filesystem.  Giving --remove allows
existing paths to be removed from the index if named paths are
not found on the filesystem.

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]