git alias for "status" not working

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

git alias for "status" not working

David Dombrowsky
I'm not sure how to debug this one.  I have a ~/.gitconfig that sets up
an alias for "git status" using the simple rule:

[alias]
    st = status

Yet, something is failing when I run it from the command line:

$ git st
[nothing happens]
$ git status
On branch 3.3-dev-davidd
Your branch is ahead of 'origin/3.3-dev-davidd' by 2 commits.
[... etc ...]

Any ideas?

This is for git version 2.8.3 on
CYGWIN_NT-10.0 [...] 2.7.0(0.306/5/3) 2017-02-12 13:18 x86_64 Cygwin

--
David Dombrowsky, Senior Software Engineer
email: [hidden email]
Cell: 518-374-3204
https://www.linkedin.com/in/david-dombrowsky-94334415
http://6thstreetradio.org/

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: git alias for "status" not working

Eliot Moss
On 3/27/2017 8:17 AM, David Dombrowsky wrote:

> I'm not sure how to debug this one.  I have a ~/.gitconfig that sets up
> an alias for "git status" using the simple rule:
>
> [alias]
>     st = status
>
> Yet, something is failing when I run it from the command line:
>
> $ git st
> [nothing happens]
> $ git status
> On branch 3.3-dev-davidd
> Your branch is ahead of 'origin/3.3-dev-davidd' by 2 commits.
> [... etc ...]
>
> Any ideas?

st is also a prefix of "stash".  Maybe it does not like aliases
that are prefixes of other commands?

Regards - EM

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: git alias for "status" not working

cyg Simple
On 3/27/2017 8:23 AM, Eliot Moss wrote:

> On 3/27/2017 8:17 AM, David Dombrowsky wrote:
>> I'm not sure how to debug this one.  I have a ~/.gitconfig that sets up
>> an alias for "git status" using the simple rule:
>>
>> [alias]
>>     st = status
>>
>> Yet, something is failing when I run it from the command line:
>>
>> $ git st
>> [nothing happens]
>> $ git status
>> On branch 3.3-dev-davidd
>> Your branch is ahead of 'origin/3.3-dev-davidd' by 2 commits.
>> [... etc ...]
>>
>> Any ideas?
>
> st is also a prefix of "stash".  Maybe it does not like aliases
> that are prefixes of other commands?

Also check the line endings of the config file.  Make sure they are UNIX
line endings instead of Windows.

--
cyg Simple

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: git alias for "status" not working

David Dombrowsky
On Mon, Mar 27, 2017 at 9:24 AM, cyg Simple <[hidden email]> wrote:
>> st is also a prefix of "stash".  Maybe it does not like aliases
>> that are prefixes of other commands?

Without the entry in the config file, `git st` results in the expected

git: 'st' is not a git command. See 'git --help'.

It's possible there's a string parse error, but using an alias of
"stx" doesn't work either.  Nor does 'xyzzy'.

> Also check the line endings of the config file.  Make sure they are UNIX
> line endings instead of Windows.

Yes, they are unix line endings.  I normally use a symlink for
~/.gitconfig, and I also tried with with and without the symlink.
Same result.

--
David Dombrowsky, Senior Software Engineer
email: [hidden email]
https://www.linkedin.com/in/david-dombrowsky-94334415
http://6thstreetradio.org/

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: git alias for "status" not working

David Dombrowsky
FYI: after the latest cygwin update to git v 2.12.3, this is no longer
a problem.

Setting an alias like "st = status -uno" works as expected.  Many
thanks to the maintainer.

On Mon, May 15, 2017 at 8:54 AM, David Dombrowsky
<[hidden email]> wrote:

> FYI: after the latest cygwin update to git v 2.12.3, this is no longer
> a problem.
>
> Setting an alias like "st = status -uno" works as expected.  Many
> thanks to the maintainer.
>
> On Mon, Mar 27, 2017 at 3:59 PM, David Dombrowsky
> <[hidden email]> wrote:
>> On Mon, Mar 27, 2017 at 9:24 AM, cyg Simple <[hidden email]> wrote:
>>>> st is also a prefix of "stash".  Maybe it does not like aliases
>>>> that are prefixes of other commands?
>>
>> Without the entry in the config file, `git st` results in the expected
>>
>> git: 'st' is not a git command. See 'git --help'.
>>
>> It's possible there's a string parse error, but using an alias of
>> "stx" doesn't work either.  Nor does 'xyzzy'.
>>
>>> Also check the line endings of the config file.  Make sure they are UNIX
>>> line endings instead of Windows.
>>
>> Yes, they are unix line endings.  I normally use a symlink for
>> ~/.gitconfig, and I also tried with with and without the symlink.
>> Same result.
>>
>> --
>> David Dombrowsky, Senior Software Engineer
>> email: [hidden email]
>> https://www.linkedin.com/in/david-dombrowsky-94334415
>> http://6thstreetradio.org/
>
>
>
> --
> David Dombrowsky, Senior Software Engineer
> email: [hidden email]
> Cell: 518-374-3204
> https://www.linkedin.com/in/david-dombrowsky-94334415
> http://6thstreetradio.org/



--
David Dombrowsky, Senior Software Engineer
email: [hidden email]
Cell: 518-374-3204
https://www.linkedin.com/in/david-dombrowsky-94334415
http://6thstreetradio.org/

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple