I need to know why the two commits are different. I have two commits, e2383d and 2c44ab, which, apparently, since they have different hashes, different.
First, I know about git diff
, and I'm currently trying to git diff e2383d 2c44ab
. He returns successfully, with no withdrawal. Two commits have:
- Same commit message
- Same author
- Same
commit date ( changed: sorry, just a date, see my answer below) - Same parent
- The same as far as I can tell.
Basically, my tree looks like this:
* β stuff based on that commit | * β e2383d * | β 2c44ab |/ * β the common parent
I am going to eliminate e2383d, but before I do this, I would like to make sure that there is nothing important there. My understanding of git
, however, is that if the two βcommitsβ were the same, they have the same hash, and thus my situation would not exist unless there was a difference between the two.
One more thing I tried:
% diff <(git show 2c44ab) <(git show e2383d) 1c1 < commit 2c44ab... --- > commit e2383d...
Forgotten who has> 1 date. The following command showed (for me) the difference between my two commits:
% diff <(git show --pretty=fuller 2c44ab) <(git show --pretty=fuller e2383d) 1c1 < commit 2c44ab96bde429c9f345d8a12dfcf2278faa9333 --- > commit e2383d3164589bb3a8a679c9cb6bbe93ea41e2ee 5c5 < CommitDate: Wed Nov 23 17:06:40 2011 -0800 --- > CommitDate: Mon Nov 28 11:41:26 2011 -0800
The commit date for Monday is the time I did the reinstall. Now, why git
saves this - it seems to win the "This is the same as I will add" behavior that I expected.
source share