Ciaran McCreesh <ciaran.mccreesh@googlemail.com> writes:This probably is a borderline with feaping creaturism. What's the use of it in a real workflow that you need this for? "git add -u" may be too broad in that it also adds anything modified, but so is --if-missing too broad in that it removes anything removed, and if you are going to limit by giving pathspecs _anyway_, then... Old timers might just do: git diff --name-only --diff-filter=D | git update-index --remove --stdin ;-) Not your fault in entirety, but we should drop these " = 0" initializations for static variables in a clean-up patch. Perhaps the command should error out if some of the named files still exist in the working tree? (1) (Style). Opening brace comes on the same line as "if ()". (2) (Design). How should this new option interact with --cached mode of operation? (3) (Design). Shouldn't "git rm --if-missing" without any pathspec remove all missing paths from the index? (4) If lstat fails due to I/O error or something, you do not continue and add that path you did not get ENOENT for to the kill-list. Is that desirable? (5) I wonder if lstat() is enough here. Consider: - current commit has "kernel" symlink to "linux-2.6/" directory but you want to remove kernel and move directory linux-2.6 to it, so: - you run "rm kernel; mv linux-2.6 kernel" - then you run "git rm --if-missing -- kernel" What should the command do? -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Greg KH | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 006/196] Chinese: add translation of oops-tracing.txt |
| Luciano Rocha | usb hdd problems with 2.6.27.2 |
| Roland Dreier | Re: Integration of SCST in the mainstream Linux kernel |
git: | |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| David Miller | [GIT]: Networking |
| Natalie Protasevich | [BUG] New Kernel Bugs |
