using aliases within the subdirectory

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

using aliases within the subdirectory

From: Matej Batic <hidden>
Date: 2016-06-15 22:51:02

Dear all,

I am facing a problem, noted previously in
    
http://git.661346.n2.nabble.com/git-alias-always-chdir-to-top-td1609456.html  

    http://kerneltrap.org/mailarchive/git/2010/5/5/29818/thread
which in practice means that I cannot pass the " -- 
relative_path_to_some_file_in_the_tree" argument to my alias.

Is there any way to get the current working dir before git changes dir 
to root directory?

Best regards,
Matej

Re: using aliases within the subdirectory

From: Michael J Gruber <hidden>
Date: 2016-06-15 22:51:02

Matej Batic venit, vidit, dixit 13.04.2011 12:24:
Dear all,

I am facing a problem, noted previously in
    
http://git.661346.n2.nabble.com/git-alias-always-chdir-to-top-td1609456.html  

    http://kerneltrap.org/mailarchive/git/2010/5/5/29818/thread
which in practice means that I cannot pass the " -- 
relative_path_to_some_file_in_the_tree" argument to my alias.

Is there any way to get the current working dir before git changes dir 
to root directory?

Best regards,
Matej
This may depend on your shell and rc files, but for me, $PWD gives the
original current working dir.

Also, revisiting that topic after 1.7.5 seems worthwhile.

Michael
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help