[Top][All Lists]

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

Re: git apologia

From: Thien-Thi Nguyen
Subject: Re: git apologia
Date: Tue, 18 Nov 2014 09:58:25 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

() Eli Zaretskii <address@hidden>
() Mon, 17 Nov 2014 18:41:50 +0200

   What's more natural than asking for
   the Nth previous commit?

Personally, i use ‘git-show-branch’ and ‘more-vc-git-show’
(sample output and definitions attached) and additionally
bind ‘C-c C-s’ to the latter in compilation mode buffers.

Directory: ~/build/GNU/guile-sdl/

! [ack] Release: 0.5.1
 ! [p] Fix typo: Spell "compatib..." correctly!
  ! [q] Fix typo: Spell "compatib..." correctly!
   * [q-fix-k2c] also pass ‘DEFS’ and ‘SDL_CFLAGS’ to k2c, via new var ‘cppopts’
    ! [z-gfx-font] Add ‘set-font!’ and ‘builtin-font’.
   *  [q-fix-k2c] also pass ‘DEFS’ and ‘SDL_CFLAGS’ to k2c, via new var 
   *  [q-fix-k2c^] make k2c handle command-line ‘-- CFLAGS’
   *  [q-fix-k2c~2] bootstrap w/ Guile-BAUX module ‘minus-i-dirs’
 ++*  [p] Fix typo: Spell "compatib..." correctly!
    + [z-gfx-font] Add ‘set-font!’ and ‘builtin-font’.
+++*+ [ack] Release: 0.5.1

Attachment: git-show-branch.el
Description: application/emacs-lisp

Attachment: more-vc.el
Description: application/emacs-lisp

This way i don't need to count anything and stuff before
the earliest branch (in the example, ‘ack’) is never shown
to begin w/; instead, i move point to a ref (e.g., branch
name in square braces, or SHA1) and type ‘C-c C-s’.
That's most natural to me.  The compilation mode support
is to be able to likewise type ‘C-s C-s’ in *compilation*
on arbitrary shell command output (e.g., "git stash list"
or "git log --oneline -42").

The crux is func ‘more-vc-ref-at-point’, which could stand
to be improved, surely...

Anyway, i find "git log" to be only marginally useful (see
my previous grumblings re ChangeLog grepping) but that
will probably change, seeing where things are headed.
Nonetheless, i don't think manually counting commits will
ever be part of my workflow.

Thien-Thi Nguyen
   GPG key: 4C807502
   (if you're human and you know it)
      read my lisp: (responsep (questions 'technical)
                               (not (via 'mailing-list)))
                     => nil

Attachment: signature.asc
Description: PGP signature

reply via email to

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