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

Re: [PATCH 0/2] Log pretty format alignment improvements

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 17, 2016, 16:43 UTC
Message-ID
<xmqqwpln22cc.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20160617112707.GA29739@ash>
Duy Nguyen <pclouds@gmail.com> writes:
Show 32 quoted lines
> Ah ok. This command with this series (using %>(n))
>
> ~/w/git/git log --format='%>(50,trunc)%s' --graph -15 origin/pu
>
> and the system one at version 2.7.3 (using %>|(n))
>
> /usr/bin/git log --format='%>|(50,trunc)%s' --graph -15 origin/pu
>
> both produce the same output like this, checked with md5sum
>
> *   Merge branch 'js/am-3-merge-recursive-direct' in..
> |\  
> | *          am: make a direct call to merge_recursive
> | * merge_recursive_options: introduce the "gently" ..
> * |            Merge branch 'tb/complete-status' into pu
> |\ \  
> | * |                         completion: add git status
> | * |      completion: add __git_get_option_value helper
> | * | completion: factor out untracked file modes into..
> * | |    Merge branch 'mj/log-show-signature-conf' into pu
> |\ \ \  
> | * | |    log: "--no-show-signature" commmand-line option
> | * | | log: add "log.showsignature" configuration varia..
> * | | |              Merge branch 'nd/worktree-lock' into pu
> |\ \ \ \  
> | * | | |  worktree.c: find_worktree() search by path suffix
> | * | | |                     worktree: add "unlock" command
> | * | | |                       worktree: add "lock" command
> | * | | |               worktree.c: add is_worktree_locked()
>
> The output looks weird though, which makes me a bit hesitate to add it
> in the test suite...
It may become easier to see if you used %<(N) vs %<|(N) instead?
Previous: Duy NguyenNext: Josef Kufner
Message 6 of 7 in “Log pretty format alignment improvements”
  1. 0/2 Log pretty format alignment improvementsNguyễn Thái Ngọc Duy, Jun 16, 2016
  2. 1/2 pretty: pass graph width to pretty formatting for use in '%>|(N)'Nguyễn Thái Ngọc Duy, Jun 16, 2016
  3. 2/2 pretty.c: support <direction>|(<negative number>) formsNguyễn Thái Ngọc Duy, Jun 16, 2016
  4. Junio C HamanoJun 16, 2016
  5. Duy NguyenJun 17, 2016
  6. Junio C HamanoJun 17, 2016
  7. Josef KufnerJun 17, 2016

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.