Re: Is it possible to use GIT with non-standard directory?



On 29 April 2016 at 00:04, Simon White <mintroll-git 2-72 co uk> wrote:
It is possible to have a GIT repository with a non-standard name, other than
".git".


Why would this ever be the case?


It is a helpful trick to maintain multiple GIT repositories in the same
directory, as described here:

http://stackoverflow.com/questions/436125/two-git-repositories-in-one-directory

So, is it possible to tell Meld to use a non-standard GIT repository? I
can't seem to find the option anywhere?

Other than as below, no. We don't support switching between multiple
git repos in one folder. Honestly, I don't see how we could easily
detect and display this... in which case I think the switching would
have to be manual by using the environment.

(
Also, if the GIT repository isn't even in the same directory:
https://git-scm.com/blog/2010/04/11/environment.html
)

Meld should currently support having .git as a file containing a
gitdir-style alias, and best I know will also support the GIT_DIR
environment variable.

Having said that, I don't know how well-tested this configuration is
at this point, but I know that someone was using it in the past.

cheers,
Kai


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