Re: gitk feature request..
- From
- Marco Costalba <mcostalba@gmail.com>
- Date
- Nov 11, 2006, 15:08 UTC
- Message-ID
- <e5bfff550611110708r1ad9559ewf35b8abaceb21cc4@mail.gmail.com>
- In-Reply-To
- <7vslgu28do.fsf@assigned-by-dhcp.cox.net>
On 11/7/06, Junio C Hamano <junkio@cox.net> wrote:
> > Having said that, is the gitk view supposed to be shared across > users of a single repository? >
Perhaps I misunderstand, but aren't gitk views a command line arguments set for git-rev-list?
Couldn't be defined as aliases and stored in .git/config? so to be used also with other git commands, as example git log...and of course other GUI tools ;-).
If I understand correctly the git documentation, aliases store both the git command and the argument list. Perhaps for views the command could be git-rev-parse.
Regarding the local / private views problem, perhaps we could use a local, i.e. out of .git directory, config file that _extends_ and _overrides_ the repository config file.
What I mean is that an alias, or also, in general, a config variable could be searched by git, first in the local file, then if not found in the .git/config file.
Of course the problem of per-repository _and_ private views stay open (we could use sub-sections identified by repo path in private .config file???) but I think this is a more general and porcelain agnostic approach and could be better reused and extended.