git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v3 4/4] gitk: pass --no-graph to `git log`

From
Alex Henrie <alexhenrie24@gmail.com>
Date
Feb 11, 2022, 20:08 UTC
Message-ID
<CAMMLpeTWvN45jTmoFHBS2+E+wEuBKTAnxXh3+RWzJc0O2rYy2A@mail.gmail.com>
In-Reply-To
<xmqq5yplb46m.fsf@gitster.g>
On Fri, Feb 11, 2022 at 12:20 PM Junio C Hamano <gitster@pobox.com> wrote:
Show 18 quoted lines
>
> Alex Henrie <alexhenrie24@gmail.com> writes:
>
> > What if we make log.graph=true also require feature.experimental=true?
>
> No.  feature.experimental is to give people an opt-in opportunity
> for features that we are considering to enable by default.
>
> > The log.graph option would really be a useful feature for people who
> > use Git exclusively from the CLI without any external tools. It seems
> > that the main challenge is how to give others time to adjust.
>
> Those who want to see log by default must need to twaek their
> configuration.  Instead of doing "git config log.graph true" and
> breaking tools, they can do "git config alias.mylog 'log --graph'"
> with the same ease, without breaking anything.
>
> So...

Yeah, that's not a bad solution. I actually have `git graph` aliased to `git log --graph --abbrev-commit --pretty=oneline` for this purpose. If a lot of people are doing that, maybe a new command should be added to Git itself. It seems like there's not much demand for that at the moment though.

-Alex
Previous: Alex HenrieNext: Alex Henrie
Message 11 of 13 in “log: fix memory leak if --graph is passed multiple times”
  1. 1/4 log: fix memory leak if --graph is passed multiple timesAlex Henrie, Feb 11, 2022
  2. 2/4 log: add a --no-graph optionAlex Henrie, Feb 11, 2022
  3. Junio C HamanoFeb 11, 2022
  4. Alex HenrieFeb 11, 2022
  5. 4/4 gitk: pass --no-graph to `git log`Alex Henrie, Feb 11, 2022
  6. Junio C HamanoFeb 11, 2022
  7. Alex HenrieFeb 11, 2022
  8. Junio C HamanoFeb 11, 2022
  9. Junio C HamanoFeb 11, 2022
  10. Alex HenrieFeb 11, 2022
  11. Alex HenrieFeb 11, 2022
  12. 3/4 log: add a log.graph config optionAlex Henrie, Feb 11, 2022
  13. Junio C HamanoFeb 11, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.