joseluisq / gitnow

Speed up your Git workflow. :tropical_fish:
https://github.com/joseluisq/gitnow
MIT License
391 stars 25 forks source link

Upgrade show command to display also diff patch #15

Closed juwishmaster closed 4 years ago

juwishmaster commented 4 years ago

Replace actual command by git show -p --stat <id>

I thinks it's better to see what have been done.

Best regards Willy Micieli

joseluisq commented 4 years ago

I think that just generating a patch along with current show functionality makes more sense here. For example:

~> git show --compact-summary --patch HEAD

With those commands in place you will get the same like show does now + the patch (diff of changes made) as you suggested.

joseluisq commented 4 years ago

Pointing out that --patch is -p (short) and --compact-summary implies already --stat.

juwishmaster commented 4 years ago

i'm okay for your choise.

Best regards Willy Micieli

joseluisq commented 4 years ago

Done, just install from the master branch to get this change until the next release.