From: Philip Oakley Date: Sun, 30 Oct 2022 21:41:45 GMT Subject: Re: [PATCH 0/1] extend the truncating pretty formats Message-ID: In-Reply-To: <20221030185614.3842-1-philipoakley@iee.email> On 30/10/2022 18:56, Philip Oakley wrote: > A recent enquiry on the Git-Users list forgot the link https://groups.google.com/g/git-users/c/ayo_4Sy65TI/m/wRkmrcVWAQAJ > asked for horizontal log graphs > similar to those used in the manual ASCII art graphs. These use single > or double character short strings for commits. > > The existing pretty pretty-formats are unable to truncate to single or > double characters because of their use of ellipsis `..`. As a starter, > let's add left and right hard truncation options to the existing > options as a preparatory step for potential `--horizontal` graphs. > > It is noted that the truncation options do not have any tests yet. > > Also cc'ing Nsengiyumva who has proposed to look at unifying the > ref-filter and --pretty formats [1] > > -- > Philip > > To: Git List > Cc: NSENGIYUMVA WILBERFORCE > Cc: Taylor Blau > Cc: Junio C Hamano > > > [1] https://lore.kernel.org/git/CA+PPyiE=baAoVkrghE5GQMt984AcaL=XBAQRsVRbN8w7jQA+ig@mail.gmail.com/ > > Philip Oakley (1): > pretty-formats: add hard truncation, without ellipsis, options > > Documentation/pretty-formats.txt | 7 ++++--- > pretty.c | 18 +++++++++++++++++- > 2 files changed, 21 insertions(+), 4 deletions(-) >