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 diff command with pretty diff #81

Closed
chshersh opened this issue Jul 13, 2019 · 0 comments · Fixed by #90
Closed

Implement hit diff command with pretty diff #81

chshersh opened this issue Jul 13, 2019 · 0 comments · Fixed by #90
Assignees
Labels
beauty CLI command-line interface Git Git commands

Comments

@chshersh
Copy link
Contributor

chshersh commented Jul 13, 2019

This command will show pretty diff output like in the image below:

Screenshot from 2019-07-13 22-20-17

The command to do this:

git diff HEAD~1 --color=always | diff-highlight | less -rFX

However, diff-highlight requires installation. Instructions:

  1. Ubuntu: https://qiita.com/SakaiYuki/items/2814d417d0bec59046bb
  2. Macos: https://www.viget.com/articles/dress-up-your-git-diffs-with-word-level-highlights/

This to look for:

  1. Check whether diff-highlight is on path and call ordinary diff
@chshersh chshersh added Git Git commands CLI command-line interface beauty labels Jul 13, 2019
@chshersh chshersh self-assigned this Jul 28, 2019
chshersh added a commit that referenced this issue Jul 28, 2019
chshersh added a commit that referenced this issue Jul 28, 2019
chshersh added a commit that referenced this issue Jul 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beauty CLI command-line interface Git Git commands
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant