mirror of
https://github.com/rixx/git-backdate
synced 2024-11-25 04:50:22 +00:00
parent
eeae8c8984
commit
d9abd5c921
1 changed files with 2 additions and 3 deletions
|
@ -93,10 +93,9 @@ def rewrite_history(
|
|||
# first, choose the date
|
||||
date_index = round(progress * (duration - 1))
|
||||
date = days[date_index]
|
||||
if not last_timestamp or date == last_timestamp.date():
|
||||
day_progress += 1
|
||||
else:
|
||||
if not last_timestamp or date != last_timestamp.date():
|
||||
day_progress = 0
|
||||
day_progress += 1
|
||||
|
||||
# if we only have one commit per day at most, we can use the whole day.
|
||||
# otherwise, we need to limit the time range further to avoid collisions.
|
||||
|
|
Loading…
Reference in a new issue