Re: git-PS1 bash prompt setting

2 messages, 2 authors, 2016-08-11 · open the first message on its own page

Re: git-PS1 bash prompt setting

From: Junio C Hamano <hidden>
Date: 2016-08-11 19:47:57

Nicolas Vilz [off-list ref] writes:
I glued that in my system bashrc with the extension, that it shows to me
user.email out of repo-config, which is also very handy. So I am always
reminded to set my user.credentials in .git/config and i always know which 
role i play in the repository i am working at.
I think there is something wrong if the user needs to be
_constantly_ reminded who he is.  Care to explain?

There was a talk on the list about making "git-commit" (and
"git-merge" that does not do a fast-forward) refuse to proceed
until user.nameemail are explicitly set in the configuration.  I
think that particular implementation is a bad idea because it
punishes people who have set up their GECOS and hostname sanely,
but at the same time I do understand that people who just
started to use git would be very unhappy to learn that their
names were misspelled in GECOS field only after accumulating a
couple dozen commits.

Re: git-PS1 bash prompt setting

From: Nicolas Vilz <hidden>
Date: 2016-08-11 19:54:13

On Mon, Nov 27, 2006 at 12:48:24AM -0800, Junio C Hamano wrote:
Nicolas Vilz [off-list ref] writes:
quoted
I glued that in my system bashrc with the extension, that it shows to me
user.email out of repo-config, which is also very handy. So I am always
reminded to set my user.credentials in .git/config and i always know which 
role i play in the repository i am working at.
I think there is something wrong if the user needs to be
_constantly_ reminded who he is.  Care to explain?
Yes, you are right. It sounds a bit strange. I try to setup a pool of 
configuration data for several linux-boxes which are kind of equal in a 
git repository.

Normally I just pull the config-branch from the repository to the
particular box, but sometimes i have to test the config and alter it...
and other people do as well. And therefore i like to be reminded
constantly who I am.

I glued that in the system bashrc, so I have it for services which
run as users and which configuration data has to be edited by the
services user... also here, several people are working on that machine
and make changes.

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