git-status: Use "-sb" options by default?

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

git-status: Use "-sb" options by default?

From: Jason Timrod <hidden>
Date: 2016-06-15 22:55:13

Hi,

I've been rooting around the "git-config" man page as well as the "git-status" man page, but couldn't find the following, which suggests it's not (yet) possible.

I'm looking for a way to make the "-sb" options to git-status the default somehow.  That is, I would like the short form of git-status to be the default when typing in "git status".  I appreciate I am able to do this in an indirect way using aliases, but this is slightly suboptimal for me.

If this isn't possible directly, would someone mind considering this a feature request?

Out of interest, would this be done via the git-config system, most likely?

Thanks kindly,

Jason

Re: git-status: Use "-sb" options by default?

From: Ramkumar Ramachandra <hidden>
Date: 2016-06-15 22:55:13

Jason Timrod wrote:
I'm looking for a way to make the "-sb" options to git-status the default somehow.
I've aliased `git status` to `git status -sb` too, and I think it's a
very sensible default; who wants to see

  # Changes not staged for commit:
  #   (use "git add <file>..." to update what will be committed)
  #   (use "git checkout -- <file>..." to discard changes in working directory)

over and over again?

Maybe a status.shortWithBranch is in order?  However, I don't know if
we can have one configuration option that turns on both `-s` and `-b`.

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