guix-devel
[Top][All Lists]
Advanced

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

Re: [Outreachy] Strategy to implement guix git log --pretty=<string>


From: Ludovic Courtès
Subject: Re: [Outreachy] Strategy to implement guix git log --pretty=<string>
Date: Thu, 14 Jan 2021 22:29:10 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Hi Magali,

Magali <magalilemes00@gmail.com> skribis:

> As you might know, as part of my Outreachy internship I'm currently
> working on implementing the subcommand 'guix git log', for browsing the
> history of all packages. So far, it works with '--oneline' and
> '--format=<FORMAT>', and FORMAT can be 'oneline', 'medium' or 'full'. If
> you want to see it, the code can be found at
> https://gitlab.com/magalilemes/guix

Nice to see progress there!  Don’t hesitate to stop by on IRC or the
mailing list when you have questions or when in doubt, or just to share
your latest achievements.

> On the road to adding another option to the subcommand,
> '--pretty=<string>' arose as an idea. With git log, you can do something
> like
> git log pretty=<string>
> And this string can have placeholders, such as %h for showing the short
> hash of a commit, and %s for showing the commit subject. For instance,
> you could have git log --pretty="%h %s" and this would display the
> commit history log with the short hash and subject of commits.

I was going to suggest postponing this feature, but I see in the repo
you already came up with a reasonable solution (maybe not fool-proof,
because it should be possible to escape the percent character, and then
you can’t just use regexps, but it’s probably good enough.)

Thanks for the update,
Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]