On Thu, 14 Feb 2008, Jeff King wrote:I typically have lots of branches. Many of those are fairly dynamic -- they come and go. Keeping reflogs for them would only clutter the reflog space, especially when the same names are reused. I prefer to have a clean reflog for the currently alive branch of a given name rather than having a log of anything that occurred under that name. And if I really want to find out about that old branch then there is always the HEAD reflog. Sure, and that limitation is IMHO quite sane. I don't think it is worth stretching it just for the convenience of having refs for deleted branches elsewhere than from the HEAD reflog. And if you delete it then you can retrieve it again from its origin. If, on the other hand, you _checkout_ that branch (it now entered the HEAD reflog), and _commit_ to it (which commit would be unreachable from other sources) then _that_ is a ref worth keeping a log of. Sure. And what information would become unreachable if you delete 'foo' at that point? The 'bar' commit is not lost, and likely to still exist in some other reflog. This is trivial. $ git log -g HEAD | grep -C2 "^Reflog.*moving from branch to" If the first hit is HEAD@{x} then your branch@{0} is just HEAD@{x+1}. The naming of deleted reflogs when new branches with same name are created, or the concatenation of entries for unrelated branches that might happen to have existed under the same name. And because the relevant entries are already in the HEAD reflog anyway, and trivially retrieved as demonstrated above, I don't think it is worth adding any additional complexity for what is only a convenience feature that is not supposed to be used many times a day after all. Nicolas - 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
| Jeff Garzik | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Christoph Hellwig | Re: [malware-list] [RFC 0/5] [TALPA] Intro to a linux interface for on access scan... |
| Heiko Carstens | Re: -mm merge plans for 2.6.23 -- sys_fallocate |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Arjan van de Ven | Re: [GIT]: Networking |
| Jens Axboe | Re: [BUG] New Kernel Bugs |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Emmanuel Dreyfus | fixing send(2) semantics (kern/29750) |
| Christos Zoulas | Re: Melting down your network [Subject changed] |
| Juan RP | Changing the I/O scheduler on-the-fly |
| Emmanuel Dreyfus | Re: fixing send(2) semantics (kern/29750) |
