git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Git Log ignores --oneline and --pretty=oneline in combination with -L.
@ 2020-04-28 14:28 Nixon, Francis A
  2020-04-28 21:04 ` Emma Brooks
  2020-04-28 21:04 ` Jeff King
  0 siblings, 2 replies; 3+ messages in thread
From: Nixon, Francis A @ 2020-04-28 14:28 UTC (permalink / raw)
  To: git@vger.kernel.org

 Running `git log --pretty=oneline -L:get_stack_map_frames:stackmapframes.rs`(filename/function names as an example only, consistent across many files.) results on in correct output but doesn't ouput in a oneline format(still includes the full diffs). 

Occurs on `git version 2.26.GIT` (e870325ee8575d5c3d7afe0ba2c9be072c692b65), as well as whatever `git version 2.20.1`.

Francis Nixon

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

* Re: Git Log ignores --oneline and --pretty=oneline in combination with -L.
  2020-04-28 14:28 Git Log ignores --oneline and --pretty=oneline in combination with -L Nixon, Francis A
@ 2020-04-28 21:04 ` Emma Brooks
  2020-04-28 21:04 ` Jeff King
  1 sibling, 0 replies; 3+ messages in thread
From: Emma Brooks @ 2020-04-28 21:04 UTC (permalink / raw)
  To: Nixon, Francis A; +Cc: git

On 2020-04-28 14:28:15+0000, Nixon, Francis A wrote:
>  Running `git log --pretty=oneline -L:get_stack_map_frames:stackmapframes.rs`(filename/function names as an example only, consistent across many files.) results on in correct output but doesn't ouput in a oneline format(still includes the full diffs). 

-L implies --patch, which outputs a full diff. If you don't want that,
add --no-patch to the command.

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

* Re: Git Log ignores --oneline and --pretty=oneline in combination with -L.
  2020-04-28 14:28 Git Log ignores --oneline and --pretty=oneline in combination with -L Nixon, Francis A
  2020-04-28 21:04 ` Emma Brooks
@ 2020-04-28 21:04 ` Jeff King
  1 sibling, 0 replies; 3+ messages in thread
From: Jeff King @ 2020-04-28 21:04 UTC (permalink / raw)
  To: Nixon, Francis A; +Cc: git@vger.kernel.org

On Tue, Apr 28, 2020 at 02:28:15PM +0000, Nixon, Francis A wrote:

>  Running `git log --pretty=oneline
>  -L:get_stack_map_frames:stackmapframes.rs`(filename/function names as
>  an example only, consistent across many files.) results on in correct
>  output but doesn't ouput in a oneline format(still includes the full
>  diffs).

The "--oneline" option has nothing to do with the diff display; it
controls the formatting of the commit message.

The default for git-log is not to show a diff at all, which is why "git
log --oneline" truly has only one line per commit. Using the "-L" option
implies showing a diff. Try adding "-s" or "--no-patch" to suppress it.

> Occurs on `git version 2.26.GIT`
> (e870325ee8575d5c3d7afe0ba2c9be072c692b65), as well as whatever `git
> version 2.20.1`.

Note that the combination of "-s" and "-L" was added in v2.22, so it
will work on one but not the other.

-Peff

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

end of thread, other threads:[~2020-04-28 21:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-28 14:28 Git Log ignores --oneline and --pretty=oneline in combination with -L Nixon, Francis A
2020-04-28 21:04 ` Emma Brooks
2020-04-28 21:04 ` Jeff King

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).