From: Victor Porton <porton.victor@gmail.com>
To: git@vger.kernel.org
Subject: git log --patch for a particular file
Date: Mon, 16 Oct 2023 13:20:41 +0300 [thread overview]
Message-ID: <75545e1c-ce62-4b49-983e-1e7b1afb2fab@gmail.com> (raw)
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.
next reply other threads:[~2023-10-16 10:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-16 10:20 Victor Porton [this message]
2023-10-16 10:29 ` git log --patch for a particular file Kristoffer Haugsbakk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=75545e1c-ce62-4b49-983e-1e7b1afb2fab@gmail.com \
--to=porton.victor@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).