unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [Outreachy] Feedback on 'guix git log' subcommand
@ 2021-01-28  3:53 Magali
  2021-01-28 23:07 ` zimoun
  2021-01-29  0:04 ` [Outreachy] 'guix git log' slowness? zimoun
  0 siblings, 2 replies; 6+ messages in thread
From: Magali @ 2021-01-28  3:53 UTC (permalink / raw)
  To: Gábor Boskovits, zimoun, Guix Devel

Hi, Guix!

I would like to hear tips and suggestions regarding what's been done so
far with the 'guix git log' subcommand, part of my Outreachy internship.
On a side note, I've been blogging about it at
<https://magalilemes.gitlab.io/blog>.

The code can be found on the wip-guix-log branch and also at
<https://gitlab.com/magalilemes/guix>. So in order to retrieve it either:

In the Guix Git repository:

$ git checkout wip-guix-log

or

$ git clone git@gitlab.com:magalilemes/guix.git
$ cd guix

Below are a few examples of the options currently available:

./pre-inst-env guix git log --format=medium

./pre-inst-env guix git log --oneline

./pre-inst-env guix git log --channel-cache-path

./pre-inst-env guix git log --channel-cache-path=guix

The '--format=FORMAT' option allows FORMAT to be oneline, medium or full.
The '--channel-cache-path' without any argument shows a list of all
channels and their checkout path. If you provide a channel as an
argument, then only that channel path will be shown.
Notice, also, that when the subcommand displays commits, all commits
from all channels are shown. That's done by appending the commits,
retrieved with the commit-closure procedure, from each channel. Any
suggestions on how to sort all of these commits?

There's also the '--pretty' option, whose argument is a string. For
example, it could be invoked like ./pre-inst-env guix git log
--pretty="Subject: %s". This option works using regular expressions and
there are only five placeholders. Is it worth adding more?

Another thing is that the command is a bit slower than 'git log' itself.
Thoughts on how that could be improved?


Cheers,
Magali




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-02-01 15:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-28  3:53 [Outreachy] Feedback on 'guix git log' subcommand Magali
2021-01-28 23:07 ` zimoun
2021-01-30  1:30   ` Magali
2021-02-01  7:27     ` zimoun
2021-02-01 15:18   ` Ludovic Courtès
2021-01-29  0:04 ` [Outreachy] 'guix git log' slowness? zimoun

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).