If I run git diff
, and my changes are less than one page, the command will automatically exit. This is undesired because this is in a script and I immediately call git commit
afterwards. This causes single page changelogs to be missed.
My first thought would be to pipe the differences into less
, but this causes no differences changelogs to display an empty screen (which requires a q
press to exit). Here is the command I'm using: git diff --color=always | less
.
Is there some better way to do this?