]> arthur.barton.de Git - bup.git/commitdiff
Use the author date, not committer date for the bup save date.
authorRob Browning <rlb@defaultvalue.org>
Mon, 10 Feb 2014 19:03:09 +0000 (13:03 -0600)
committerRob Browning <rlb@defaultvalue.org>
Fri, 2 May 2014 16:06:37 +0000 (11:06 -0500)
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 <rlb@defaultvalue.org>
lib/bup/git.py

index 9d0b66f204bdc0d018b78018f9094918e2b143f7..623a1eddc6b5e87f8d7f45bd95960f005ff018be 100644 (file)
@@ -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: