38 ms·
> If we run a diff we are interested in the changes, but if you ask git to show you the commit it will show you just that. git show <commit SHA-1> will output
by slavik81 6y ago
> If we run a diff we are interested in the changes, but if you ask git to show you the commit it will show you just that.
git show <commit SHA-1> will output a diff.
- trulyme 6y agoI think this is more a sign that git (porcelain) is not aligned with the underlying model. It is actually a pity that so little effort went into git UI. I find the OP explanation of git model awesome and the presented concepts beautiful, but the cli utility has countless naming and consistency problems which make me sad that hg didn't win over git. Life would be much simpler for many developers if it did, imho.