Hi Magali, Magali <[email protected]> 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’.
