On Thu, 21 Dec 2006, Junio C Hamano wrote:I think there's value to a command to add an empty space with a given name to the staging area. If you commit without -a, I don't see any reason to think that you couldn't want the sequence "add-empty-space <new-file>", "modify <old-file>", "update-index <old-file>", "commit", "update-index <new-file>", "commit". It can be useful to make sure the file isn't going to be forgotten, but also not get it into the next commit. I looked into this at one point. It should probably use 000000 for the mode, because it shouldn't read the working directory at all (you might actually want to add the space before creating a file at all, for instance, and then make a symlink when you provide anything, surprising any reasonable guess at a mode). Also, this is going to show up in the diff listing, and all-zero SHA1 with a mode is used there for "read the working directory". -Daniel *This .sig left intentionally blank* - 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 Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
| Eduard - Gabriel Munteanu | [PATCH 0/5] kmemtrace |
| Greg KH | Re: [malware-list] [RFC 0/5] [TALPA] Intro to a linux interface for on access scan... |
| Borislav Petkov | [PATCH 00/18] misc generic ide stuff |
git: | |
| Jon Smirl | Something is broken in repack |
| Thomas Glanzmann | fatal: serious inflate inconsistency |
| Wink Saville | git-svn segmetation fault |
| Petko Manolov | git and binary files |
| Paul Moore | [RFC PATCH v4 00/14] Labeled networking patches for 2.6.28 |
| David Fries | [PATCH] ne.c fix for hibernate and rmmod oops fix |
| Jeff Kirsher | [PATCH 1/3] e1000e: add support for the 82567LM-4 device |
| Andrew Morton | Re: [BUG] New Kernel Bugs |
| Jim Winstead Jr. | Re: Root Disk/Book Disk Compatibility |
| Bill Day | telnet: Unable to connect to remote host: Network is unreachable |
| Doug Evans | Re: Stabilizing Linux |
| Nhut Nguyen | [Query] Trying to locate BOOTACT. |
| Soft lock bug | 3 hours ago | Linux kernel |
| kernel module to intercept socket creation | 9 hours ago | Linux kernel |
| sysctl - dynamic registration problem | 9 hours ago | Linux kernel |
| Question on swap as ramdisk partition | 11 hours ago | Linux kernel |
| serial driver xmit problem | 16 hours ago | Linux kernel |
| Generic Netlink subsytem | 17 hours ago | Linux kernel |
| 'Report spam filter error' page broken | 18 hours ago | KernelTrap Suggestions and Feedback |
| Netfilter kernel module | 1 day ago | Linux kernel |
| Why Windows is better than Linux | 1 day ago | Linux general |
| How can I see my kernel messages in vt12? | 1 day ago | Linux kernel |
