Re: Git Log ignores --oneline and --pretty=oneline in combination with -L.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux