benthayer / git-gud

Wanna git gud? Then get git-gud, and git gud at git!
MIT License
401 stars 42 forks source link

Update commit detection system to handle ambiguous commits #293

Open sahansk2 opened 3 years ago

sahansk2 commented 3 years ago

It's possible in Git to create multiple, distinct commits with the same tree content with git cherry-pick. See here:

sahan@sahan-Lenovo-YOGA-C930-ubuntu:concept$ gloga
*-.   b968625 (HEAD -> master) Useless merge
|\ \  
| | * 888d690 Secondo commit
| * | f4cb2e3 Secondo commit
| |/  
* / f8dc175 Secondo commit
|/  
* e809c7f Initial commit

In these cases, we would like to have a system to keep track of commits, perhaps by keeping track of the commit times.