From: Junio C Hamano <gitster@pobox.com>
To: "Nguyen Thai Ngoc Duy" <pclouds@gmail.com>
Cc: "Git Mailing List" <git@vger.kernel.org>,
Johannes Schindelin <johannes.schindelin@gmx.de>
Subject: Re: builtin command's prefix question
Date: Wed, 05 Dec 2007 15:43:13 -0800 [thread overview]
Message-ID: <7v8x48lnce.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <7vk5nsloa8.fsf@gitster.siamese.dyndns.org> (Junio C. Hamano's message of "Wed, 05 Dec 2007 15:22:55 -0800")
Junio C Hamano <gitster@pobox.com> writes:
> I am not convinced this is giving any natural user experience, nor an
> alternative:
>
> $ cd $HOME
> $ GIT_WORK_TREE=$HOME; export GIT_WORK_TREE
> $ cd $HOME/gits/vimrc.git
> $ edit $HOME/.vimrc
> $ git commit .vimrc
> $ cd $HOME/gits/pinerc.git
> $ edit $HOME/.pinerc
> $ git commit .pinerc
>
> While I still think the combination is simply crazy and does not make
> any sense, if enough users on the list agrees that it makes sense, I
> wouldn't mind setup() did (1) to (3) mentioned above. The alternative
> is simply to declare GIT_WORK_TREE without GIT_DIR is a nonsense and
> either error error out or ignore GIT_WORK_TREE, which might be easier to
> explain to people.
>
> Opinions?
Side note.
By saying the above, I do not mean it is nonsense to try supporting a
work tree that is an overlay of disjoint set of work tree files from
multiple repositories/projects. I do think it is a worthwhile goal to
support such a layout.
What I do not like is the way the ugly workaround does it, by
encouraging (rather, requiring) to issue git commands from a location
that is completely separate from the actual editing of the content
happens.
An independent issue of supporting such a overlayed work tree layout is
what to do with .gitignore files. I think, especially with the recent
addition of --exclude-standard to ls-files and setup_standard_excludes()
in dir.c, we could have a per repository configuration that names the
per repository exclude files, so that .gitignore-vim and .gitignore-pine
can co-exist in $HOME, each excluding everything other than the
project's own files.
next prev parent reply other threads:[~2007-12-05 23:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-05 16:56 builtin command's prefix question Nguyen Thai Ngoc Duy
2007-12-05 22:12 ` Junio C Hamano
2007-12-05 23:22 ` Junio C Hamano
2007-12-05 23:43 ` Junio C Hamano [this message]
2007-12-06 15:26 ` Nguyen Thai Ngoc Duy
2007-12-06 15:48 ` Johannes Schindelin
2007-12-06 16:04 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7v8x48lnce.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=johannes.schindelin@gmx.de \
--cc=pclouds@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 NNTP newsgroup(s).