-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Level 29 - there is no way to get the line number #252
Comments
I solved it by reading up on how the diff chunks (hunks?) header works. For example with a committed file (
After changing line
The lines:
means that the changes in file The diff chunks header
That means that the first line that's changed is line The context lines before and after the changed lines can be removed. A comment https://stackoverflow.com/a/50049834 on the SO (Stack Overflow) page that you linked to, says:
No context (extra lines) are shown above and below, and the chunk header lists the changed line number These two pages (they were among the first hits when searching for This might also be useful reading: https://en.wikipedia.org/wiki/Diff Hopefully this was of some help. |
with |
After using
git diff
orgitk
to see changes and runninggithug
command once again there is a question:According to this stackoverflow answer there's no way for
git diff
to show a line number.It is not clear that user should use another software (like vim) to get the answer.
The text was updated successfully, but these errors were encountered: