Ask Your Question
0

Is it possible to have 'git diff' show solely the line numbers and modified file names?

asked 2023-06-19 09:41:29 +0000

devzero gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-06-19 09:53:02 +0000

plato gravatar image

Yes, it is possible to have 'git diff' show solely the line numbers and modified file names. You can use the following command to achieve this:

git diff --name-only --unified=0

This will show the modified file names and line numbers without any line-by-line changes. The --name-only option displays only the modified file names, while --unified=0 option displays no context around the changes.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-19 09:41:29 +0000

Seen: 8 times

Last updated: Jun 19 '23