Re: [PATCH] git-prompt.sh: add submodule indicator

2017-01-20 Thread SZEDER Gábor
I'm not well-versed in submodules, so I won't comment on whether this is the right way to determine that a repository is a submodule, but I was surprised to see how much you have to work to find this out. My comments will mostly focus on how to eliminate or at least limit the scope of subshells

Re: [PATCH] git-prompt.sh: add submodule indicator

2017-01-19 Thread Stefan Beller
On Thu, Jan 19, 2017 at 4:07 PM, Benjamin Fuchs wrote: > I expirienced that working with submodules can be confusing. This indicator > will make you notice very easy when you switch into a submodule. > The new prompt will look like this: (sub:master) > Adding a new

[PATCH] git-prompt.sh: add submodule indicator

2017-01-19 Thread Benjamin Fuchs
I expirienced that working with submodules can be confusing. This indicator will make you notice very easy when you switch into a submodule. The new prompt will look like this: (sub:master) Adding a new optional env variable for the new feature. Signed-off-by: Benjamin Fuchs