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

Implement hit status command with nice output #63

Closed
chshersh opened this issue Mar 17, 2019 · 3 comments · Fixed by #73
Closed

Implement hit status command with nice output #63

chshersh opened this issue Mar 17, 2019 · 3 comments · Fixed by #73
Labels
CLI command-line interface enhancement New feature or request Git Git commands

Comments

@chshersh
Copy link
Contributor

See example of the output here:

@chshersh chshersh added enhancement New feature or request Git Git commands CLI command-line interface labels Mar 17, 2019
@Jigar3
Copy link
Contributor

Jigar3 commented Mar 19, 2019

Can I work on this issue ? @chshersh
Also, I tried

ndiff = "!f() { TAB=`printf '\t'`; COLUMNS=`stty size|cut -d' ' -f2`; cd $GIT_PREFIX; git diff --name-status $1 | sort -k2 > /tmp/.tmpgitndiff ; git diff --stat=$COLUMNS,800 $1 |sed -e '$d' -e \"s/^ *//;s/ /${TAB}/\" | sort | join -t \"${TAB}\" -1 2 -2 1 -o 1.1,2.1,2.2 /tmp/.tmpgitndiff - | sed \"s/${TAB}/ /g\"; rm -f /tmp/.tmpgitndiff; }; f"

pasting this in the alias section of ~/.gitconfig but can't use the ndiff command.

~/d/Basic-C-programs (master↑1|●7✚3) $ git ndiff origin/master..HEAD -- .
Not a git repository
To compare two paths outside a working tree:
usage: git diff [--no-index] <path> <path>
Not a git repository
To compare two paths outside a working tree:
usage: git diff [--no-index] <path> <path>

@chshersh
Copy link
Contributor Author

@Jigar3 I appreciate your will to contribution to this project! However, not all design decisions are made for the issue yet, so it is too early to start working on it.

@Jigar3
Copy link
Contributor

Jigar3 commented Mar 19, 2019

No issues. Let me know when all details are worked up, would like to work on this one. 😃

chshersh added a commit that referenced this issue Jul 4, 2019
vrom911 pushed a commit that referenced this issue Jul 5, 2019
* [#63] Implement 'hit status' command

Resolves #63

* Update src/Hit/Cli.hs

Co-Authored-By: Veronika Romashkina <vrom911@gmail.com>

* Fix after review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI command-line interface enhancement New feature or request Git Git commands
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants