From: Michael J Gruber <git@drmicha.warpmail.net>
To: kevin brintnall <kbrint@rufus.net>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] added -C option to chdir() into another directory first
Date: Fri, 27 Feb 2009 15:21:15 +0100 [thread overview]
Message-ID: <49A7F6DB.7040403@drmicha.warpmail.net> (raw)
In-Reply-To: <1235679099-33994-1-git-send-email-kbrint@rufus.net>
kevin brintnall venit, vidit, dixit 26.02.2009 21:11:
> This allows things like 'git -C /somewhere pull' without specifying both
> --work-tree and --git-dir.
>
I'm afraid you hit a somewhat reoccurring issue here. chdir'ing looks
simple, but it has many side effects, such as on relative paths (as
Junio pointed out) but also on the order of parsing config. Having -C as
a global git option would require dealing with all of these effects.
On the other hand, a shell function can achieve the same very easily.
The side effects are left to be dealt with by the user then ;)
Michael
prev parent reply other threads:[~2009-02-27 14:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-26 20:11 [PATCH] added -C option to chdir() into another directory first kevin brintnall
2009-02-26 20:35 ` Junio C Hamano
2009-02-26 20:44 ` kevin brintnall
2009-02-26 21:50 ` Junio C Hamano
2009-02-27 14:21 ` Michael J Gruber [this message]
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=49A7F6DB.7040403@drmicha.warpmail.net \
--to=git@drmicha.warpmail.net \
--cc=git@vger.kernel.org \
--cc=kbrint@rufus.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox