Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » Author / Commiter Preference Settings / Last inputed values
Author / Commiter Preference Settings / Last inputed values [message #499777] Mon, 23 November 2009 23:50 Go to next message
Lars Vogel is currently offline Lars Vogel
Messages: 1048
Registered: July 2009
Senior Member

Hi,

During a commit EGit asked for the author / commiter and default with
the User System property then @ and when my ip.

Could you remember the last values which the user inputed? It is
time-consuming to correct these entries at every commit.

Best regards, Lars

--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
http://www.twitter.com/vogella - vogella on Twitter
Re: Author / Commiter Preference Settings / Last inputed values [message #499799 is a reply to message #499777] Tue, 24 November 2009 03:30 Go to previous messageGo to next message
Mykola Nikishov is currently offline Mykola Nikishov
Messages: 58
Registered: July 2009
Member
Lars Vogel <Lars.Vogel@gmail.com> writes:

> During a commit EGit asked for the author / commiter and default with
> the User System property then @ and when my ip.
>
> Could you remember the last values which the user inputed? It is
> time-consuming to correct these entries at every commit.

Lars, could you file an enhancement request using
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=EGit& ;component=UI?

Actually it's worth two requests:
- to remember a previous user input (with multiple values, available as
a drop-down list and/or via completion).
- UI to change user's e-mail and name in a git configuration file for
those who don't have any other Git tool installed.

As a workaround you could just add (or edit) this section to your
..git/config file:

--8<---------------cut here---------------start------------->8---
[user]
email = my@email.com
name = My Name
--8<---------------cut here---------------end--------------->8---

--
MAN-UANIC
Re: Author / Commiter Preference Settings / Last inputed values [message #499893 is a reply to message #499799] Tue, 24 November 2009 08:20 Go to previous messageGo to next message
Lars Vogel is currently offline Lars Vogel
Messages: 1048
Registered: July 2009
Senior Member

Hi Mykola,

Thanks for the reply and the workaround.

Bug reports:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=295994
https://bugs.eclipse.org/bugs/show_bug.cgi?id=295995

Best regards, Lars

--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
http://www.twitter.com/vogella - vogella on Twitter


Mykola Nikishov wrote:
> Lars Vogel <Lars.Vogel@gmail.com> writes:
>
>> During a commit EGit asked for the author / commiter and default with
>> the User System property then @ and when my ip.
>>
>> Could you remember the last values which the user inputed? It is
>> time-consuming to correct these entries at every commit.
>
> Lars, could you file an enhancement request using
> https://bugs.eclipse.org/bugs/enter_bug.cgi?product=EGit& ;component=UI?
>
> Actually it's worth two requests:
> - to remember a previous user input (with multiple values, available as
> a drop-down list and/or via completion).
> - UI to change user's e-mail and name in a git configuration file for
> those who don't have any other Git tool installed.
>
> As a workaround you could just add (or edit) this section to your
> ..git/config file:
>
> --8<---------------cut here---------------start------------->8---
> [user]
> email = my@email.com
> name = My Name
> --8<---------------cut here---------------end--------------->8---
>
Re: Author / Commiter Preference Settings / Last inputed values [message #502275 is a reply to message #499893] Mon, 07 December 2009 10:04 Go to previous messageGo to next message
Michael Heuberger is currently offline Michael Heuberger
Messages: 30
Registered: December 2009
Member
Where can I find that configuration file on Windows? I want to configure name and email.

Thanks

Michael
Re: Author / Commiter Preference Settings / Last inputed values [message #502295 is a reply to message #502275] Mon, 07 December 2009 10:38 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias Sohn
Messages: 537
Registered: July 2009
Senior Member
> Where can I find that configuration file on Windows? I want to configure
> name and email.

See the git config documentation at
http://www.kernel.org/pub/software/scm/git/docs/git-config.h tml :

If not set explicitly with --file, there are three files where
git-config will search for configuration options:
$GIT_DIR/config
Repository specific configuration file. (The filename is of course
relative to the repository root, not the working directory.)

~/.gitconfig
User-specific configuration file. Also called "global" configuration
file.

$(prefix)/etc/gitconfig
System-wide configuration file.

On my Windows system I have (matching the above documentation):
- msysgit installed at D:\bin\git
- for a repo for C:\data\git\EGit\jgit the repo specific configuration is
located at C:\data\git\EGit\jgit\.git\config
- user specific configuration is here "C:\Documents and Settings\<my
userID>\.gitconfig"
- system wide configuration is here C:\bin\git\etc\gitconfig

--
Matthias
Re: Author / Commiter Preference Settings / Last inputed values [message #502303 is a reply to message #502295] Mon, 07 December 2009 11:12 Go to previous message
Michael Heuberger is currently offline Michael Heuberger
Messages: 30
Registered: December 2009
Member
Thank you very much! Your help was great, I solved that with the relative config file.

Cheers

Michael
Re: Author / Commiter Preference Settings / Last inputed values [message #575835 is a reply to message #499777] Tue, 24 November 2009 03:30 Go to previous message
Mykola Nikishov is currently offline Mykola Nikishov
Messages: 58
Registered: July 2009
Member
Lars Vogel <Lars.Vogel@gmail.com> writes:

> During a commit EGit asked for the author / commiter and default with
> the User System property then @ and when my ip.
>
> Could you remember the last values which the user inputed? It is
> time-consuming to correct these entries at every commit.

Lars, could you file an enhancement request using
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=EGit& ;component=UI?

Actually it's worth two requests:
- to remember a previous user input (with multiple values, available as
a drop-down list and/or via completion).
- UI to change user's e-mail and name in a git configuration file for
those who don't have any other Git tool installed.

As a workaround you could just add (or edit) this section to your
..git/config file:

--8<---------------cut here---------------start------------->8---
[user]
email = my@email.com
name = My Name
--8<---------------cut here---------------end--------------->8---

--
MAN-UANIC
Re: Author / Commiter Preference Settings / Last inputed values [message #575873 is a reply to message #499799] Tue, 24 November 2009 08:20 Go to previous message
Lars Vogel is currently offline Lars Vogel
Messages: 1048
Registered: July 2009
Senior Member

Hi Mykola,

Thanks for the reply and the workaround.

Bug reports:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=295994
https://bugs.eclipse.org/bugs/show_bug.cgi?id=295995

Best regards, Lars

--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
http://www.twitter.com/vogella - vogella on Twitter


Mykola Nikishov wrote:
> Lars Vogel <Lars.Vogel@gmail.com> writes:
>
>> During a commit EGit asked for the author / commiter and default with
>> the User System property then @ and when my ip.
>>
>> Could you remember the last values which the user inputed? It is
>> time-consuming to correct these entries at every commit.
>
> Lars, could you file an enhancement request using
> https://bugs.eclipse.org/bugs/enter_bug.cgi?product=EGit& ;component=UI?
>
> Actually it's worth two requests:
> - to remember a previous user input (with multiple values, available as
> a drop-down list and/or via completion).
> - UI to change user's e-mail and name in a git configuration file for
> those who don't have any other Git tool installed.
>
> As a workaround you could just add (or edit) this section to your
> ..git/config file:
>
> --8<---------------cut here---------------start------------->8---
> [user]
> email = my@email.com
> name = My Name
> --8<---------------cut here---------------end--------------->8---
>
Re: Author / Commiter Preference Settings / Last inputed values [message #576328 is a reply to message #499893] Mon, 07 December 2009 10:04 Go to previous message
Michael Heuberger is currently offline Michael Heuberger
Messages: 30
Registered: December 2009
Member
Where can I find that configuration file on Windows? I want to configure name and email.

Thanks

Michael
Re: Author / Commiter Preference Settings / Last inputed values [message #576346 is a reply to message #576328] Mon, 07 December 2009 10:38 Go to previous message
Matthias Sohn is currently offline Matthias Sohn
Messages: 537
Registered: July 2009
Senior Member
> Where can I find that configuration file on Windows? I want to configure
> name and email.

See the git config documentation at
http://www.kernel.org/pub/software/scm/git/docs/git-config.h tml :

If not set explicitly with --file, there are three files where
git-config will search for configuration options:
$GIT_DIR/config
Repository specific configuration file. (The filename is of course
relative to the repository root, not the working directory.)

~/.gitconfig
User-specific configuration file. Also called "global" configuration
file.

$(prefix)/etc/gitconfig
System-wide configuration file.

On my Windows system I have (matching the above documentation):
- msysgit installed at D:\bin\git
- for a repo for C:\data\git\EGit\jgit the repo specific configuration is
located at C:\data\git\EGit\jgit\.git\config
- user specific configuration is here "C:\Documents and Settings\<my
userID>\.gitconfig"
- system wide configuration is here C:\bin\git\etc\gitconfig

--
Matthias
Re: Author / Commiter Preference Settings / Last inputed values [message #576363 is a reply to message #502295] Mon, 07 December 2009 11:12 Go to previous message
Michael Heuberger is currently offline Michael Heuberger
Messages: 30
Registered: December 2009
Member
Thank you very much! Your help was great, I solved that with the relative config file.

Cheers

Michael
Previous Topic:Can I use EMF Compare for differencing with EGit
Next Topic:How to revert changes?
Goto Forum:
  


Current Time: Tue Jul 22 23:59:05 EDT 2014

Powered by FUDForum. Page generated in 0.09336 seconds