git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git log --patch for a particular file
@ 2023-10-16 10:20 Victor Porton
  2023-10-16 10:29 ` Kristoffer Haugsbakk
  0 siblings, 1 reply; 2+ messages in thread
From: Victor Porton @ 2023-10-16 10:20 UTC (permalink / raw)
  To: git

I want this:

git log --patch -- server/src/api/docs.py

to print changes only for the file server/src/api/docs.py.

Currently, it in some reasons outputs nothing (this seems not to be an 
intended behavior and could be counted as a bug).

More generally,
git log --patch -- A B C
could log changes in files A, B, C (only).

It is questionable, whether to output commit information (commit hash, 
user email, etc.) for commits that don't change specified file(s). I 
would vote to indeed output this information, not to confuse the user 
about the order of commits.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-10-16 10:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-16 10:20 git log --patch for a particular file Victor Porton
2023-10-16 10:29 ` Kristoffer Haugsbakk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).