Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add show command in order to show commit details #7

Closed
joseluisq opened this issue Feb 20, 2020 · 0 comments
Closed

Add show command in order to show commit details #7

joseluisq opened this issue Feb 20, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@joseluisq
Copy link
Owner

It would be great if we can support a command to show commit changes.

Proposal: I suggest to add a show command that performs git show --compact-summary HEAD by default which produces the following output in a compact way:

~> show
commit 10c403c9c7f7848d97d4896dc7fccb73daa5c6b0 (HEAD -> master, origin/master)
Author: Jose Quintana <jq@localhost>
Date:   Thu Feb 20 13:54:07 2020 +0100

    feat: some feature

 {src/lib => lib}/file.go                 |  0
 src/config/config.yml (new)              | 30 ++++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+)

Variants

# 1. Automatic: display the current commit (HEAD) by default
#    It performs: `git show --compact-summary HEAD`
~> show

# 2. Manual: it can support all `git show` flags as well
~> show --compact-summary HEAD~1
@joseluisq joseluisq added enhancement New feature or request help wanted Extra attention is needed labels Feb 20, 2020
@joseluisq joseluisq self-assigned this Jun 22, 2020
@joseluisq joseluisq added this to the v2.2.0 milestone Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant