From: Rob Browning Date: Mon, 10 Feb 2014 19:03:09 +0000 (-0600) Subject: Use the author date, not committer date for the bup save date. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=0794ec78732b2005ef5e151b7946b450ecb9296d;p=packages%2Fb%2Fbup.git Use the author date, not committer date for the bup save date. Since it's the author date that indicates when the save was made, use that instead of the committer date to represent saves. Doing so means that any operations on branches (like rebase, cherry-pick, etc.) won't change the "save date" as far as bup is concerned. This should have no effect with respect to backward compatibility because until now, bup always used the same date for the author and committer. Signed-off-by: Rob Browning --- diff --git a/lib/bup/git.py b/lib/bup/git.py index 9d0b66f..623a1ed 100644 --- a/lib/bup/git.py +++ b/lib/bup/git.py @@ -744,7 +744,7 @@ def rev_list(ref, count=None): opts = [] if count: opts += ['-n', str(atoi(count))] - argv = ['git', 'rev-list', '--pretty=format:%ct'] + opts + [ref, '--'] + argv = ['git', 'rev-list', '--pretty=format:%at'] + opts + [ref, '--'] p = subprocess.Popen(argv, preexec_fn = _gitenv, stdout = subprocess.PIPE) commit = None for row in p.stdout: