Carlos Rica <jasampler@gmail.com> writes:Not that git-reset is so performance sensitive, but you could do this from built-in without exec, by just reading the index and checking if you have a higher-stage entry yourself. Instead of making a call to this one after read_from_tree() returns, immediately before writing the index out at the end of read_from_tree(), you have the index in core. I think you can call read-cache.c::refresh_index() at that point and then do the write_cache(), no? s/^ {8}/\t/; This part is interesting for a couple of reasons. * When we can have both rev and path params, and the user calls us without '--' disambiguation, we make sure the rev parameter (i.e. the first non-option) cannot be interpreted as path and the path parameters (i.e. the rest) cannot be interpreted as rev, but in git-reset traditionally we did not do so. Maybe we'd want to, but that would be a very isolated change and does not have to be a part of this round. Just something to keep in mind... * You hint in a comment in the later part of the code that "git reset <tree-ish> -- paths" is to selectively read-tree into the index. I do not thinkn we advertize git-reset as such, but we do not have to forbid non commit here. Not that I think allowing arbitrary tree object is not so useful in practice. - 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
| Trent Piepho | [PATCH] [POWERPC] Improve (in|out)_beXX() asm code |
| Stoyan Gaydarov | From 2.4 to 2.6 to 2.7? |
| Andi Kleen | [PATCH] [4/50] x86: add cpu codenames for Kconfig.cpu |
| Greg Kroah-Hartman | [PATCH 013/196] Documentation: Replace obsolete "driverfs" with "sysfs". |
git: | |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | Re: HTB accuracy for high speed |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | Re: [GIT]: Networking |
