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

--full-diff does not work with line-log (git log -L) #1004

Open
phil-blain opened this issue Jul 27, 2021 · 1 comment
Open

--full-diff does not work with line-log (git log -L) #1004

phil-blain opened this issue Jul 27, 2021 · 1 comment

Comments

@phil-blain
Copy link

One might want to look at the history of a bunch of lines in a file, i.e. git log -L 234,255:path/to/file, or of a particular function, i.e. git log -L:function_name:path/to/file, while still examining all changes introduced by the commits that touched these lines.

If one uses a pathspec with git log, i.e. git log path/to/file, this behaviour can be achieved with the --full-diff option. It would be great if this option would also work with git log -L.

@phil-blain
Copy link
Author

A workaround for now is git log --format=%h --no-patch -L:git_fetch_config:builtin/fetch.c | xargs git show

@phil-blain phil-blain changed the title --full-diff does not work with linelog (git log -L) --full-diff does not work with line-log (git log -L) Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant