From: Santi Bejar <sbejar@gmail.com>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Write .editmsg in GIT_DIR to avoid being in git-status.
Date: Thu, 6 Oct 2005 15:30:30 +0200 [thread overview]
Message-ID: <8aa486160510060630m2afb18ffx@mail.gmail.com> (raw)
In-Reply-To: <7vk6griq8d.fsf@assigned-by-dhcp.cox.net>
2005/10/5, Junio C Hamano <junkio@cox.net>:
> Santi B^[.A^[Nijar <sbejar@gmail.com> writes:
>
> > It appears in the git-status output during a git-commit if you have
> > something in info/exclude.
>
> ... which does not worry me too much; you'll get used to it ;-).
>
I'm used too, but I don't think it's a 1.0 thing.
> > Also for .cmitmsg and .cmitchk to make git-commit work
> > in read-only working trees.
>
> If a working tree is read-only, I wonder what you are committing.
>
I keep my /etc modifications in git, and I want to commit as a user not as root.
> It might not be a bad idea to think about this a bit more before
> actually coding. You are moving things out of the working tree
> root level, which is a valid thing to do when worrying about a
> repository (or working tree) that you do not have write access
> to. We've had a fix similar to this for temporary files used by
> diff commands, which moved them to $TMPDIR or something like
> that. If the working tree root level is not writable for you,
> is it valid/reasonable to assume that $GIT_DIR is? Are there
> better places? E.g. perhaps $HOME/.gittmp/?
Yes, it was just quick. I think the best way would be to write to /tmp
but honor $TMPDIR.
>
> > ret="$?"
> > -rm -f .cmitmsg .editmsg .cmitchk
> > +rm -f "$GIT_DIR"/{.cmitmsg,.editmsg,.cmitchk}
>
> Please do not do "{a,b,c}". I think ksh can grok the rest of
> the git-commit.sh code, but not this.
OK.
next prev parent reply other threads:[~2005-10-06 13:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-05 16:54 [PATCH] Write .editmsg in GIT_DIR to avoid being in git-status Santi Béjar
2005-10-05 21:54 ` Junio C Hamano
2005-10-06 13:30 ` Santi Bejar [this message]
2005-10-06 20:19 ` 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=8aa486160510060630m2afb18ffx@mail.gmail.com \
--to=sbejar@gmail.com \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.