Bug#659350: git reflog should track branch deletions/re-creations

2012-02-10 Thread Hugues Hiegel
Package: git
Version: 1:1.7.8.3-1
Severity: normal

Hello all,

When deleting a ref, the whole reflog for this ref is also deleted,
disallowing users to track for a branch deletion/re-creation.
(Very useful on a shared repository, for example)

Instead, I suggest that reflogs are never removed, but simply updated
with a **deleted** message.
Alongside, git reflog should get a prune subcommand which will allow
the user to remove stale logs after ref deletions.

Best regards,
Hugues Hiegel
-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (900, 'testing'), (900, 'stable'), (1, 'experimental'), (1, 
'unstable'), (1, 'testing'), (1, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to fr_FR.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages git depends on:
ii  git-man 1:1.7.8.3-1  fast, scalable, distributed revisi
ii  libc6   2.13-10  Embedded GNU C Library: Shared lib
ii  libcurl3-gnutls 7.21.7-1 Multi-protocol file transfer libra
ii  liberror-perl   0.17-1   Perl module for error/exception ha
ii  libexpat1   2.0.1-7  XML parsing C library - runtime li
ii  perl-modules5.12.4-4 Core Perl modules
ii  zlib1g  1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages git recommends:
ii  less  444-1  pager program similar to more
ii  openssh-client [ssh-client]   1:5.8p1-7  secure shell (SSH) client, for sec
ii  patch 2.6.1-2Apply a diff file to an original
ii  rsync 3.0.8-1fast remote file copy program (lik

Versions of packages git suggests:
pn  git-arch none  (no description available)
pn  git-cvs  none  (no description available)
ii  git-daemon-run   1:1.7.8.3-1 fast, scalable, distributed revisi
pn  git-doc  none  (no description available)
pn  git-el   none  (no description available)
pn  git-emailnone  (no description available)
pn  git-gui  none  (no description available)
pn  git-svn  none  (no description available)
ii  gitk 1:1.7.8.3-1 fast, scalable, distributed revisi
ii  gitweb   1:1.7.8.3-1 fast, scalable, distributed revisi

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#659350: git reflog should track branch deletions/re-creations

2012-02-10 Thread Jonathan Nieder
severity 659350 wishlist
tags 659350 + upstream
# [1]
forwarded 659350 
http://thread.gmane.org/gmane.comp.version-control.git/135837/focus=150734
quit

Hi Hugues,

Hugues Hiegel wrote[2]:

 When deleting a ref, the whole reflog for this ref is also deleted,
 disallowing users to track for a branch deletion/re-creation.
 (Very useful on a shared repository, for example)

While there are subtleties, I agree with the general premise.

See [1] and the surrounding thread (especially [3]!) for some
pointers, and feel free to raise this on the g...@vger.kernel.org list,
cc-ing me, if you have time to work on it.  (No subscription required,
since the convention is to always reply-to-all there.)

One way to move forward might be to test Clemens's patch on top of a
more current git and report on what details feel awkward or seem to
remain to be done before it is ready for mass consumption, so
interested others can help to move it forward.

Thanks very much for this, and good luck.

Sincerely,
Jonathan

[2] http://bugs.debian.org/659350
[3] http://thread.gmane.org/gmane.comp.version-control.git/135837/focus=150778



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org