Bug 352478 - Support Identity
Summary: Support Identity
Status: RESOLVED FIXED
Alias: None
Product: kdesrc-build
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Michael Pyne
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-09 13:01 UTC by Allen Winter
Modified: 2024-05-10 09:16 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In: 15.09
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Allen Winter 2015-09-09 13:01:35 UTC
I use multiple identities during my typical day: my work identity and my kde identity.

my default identity in $HOME/.gitconfig is my work identity

I would like kdesrc-build to support adding my kde identity to the individual KDE repos (i.e. each .git/config) so that any of my commits have my kde and not my work email and user name


Reproducible: Always



Expected Results:  
the git checkouts by kdesrc-build should set user.name and user.email git configurations.
Comment 1 Michael Pyne 2015-09-11 02:06:49 UTC
Sounds like a good idea.
Comment 2 Michael Pyne 2015-09-12 20:59:04 UTC
Git commit 21b5eb9371fbb0f5f43f7cba7606c4bdb32fedd4 by Michael Pyne.
Committed on 12/09/2015 at 20:57.
Pushed by mpyne into branch 'master'.

Add git-user option.

This option can be used to setup the user.name and user.email git-config
options within each new git repository cloned or installed from
snapshot, including kde-projects repositories. This can be useful for
KDE developers with multiple Git identities that they use for
development.

Module settings override global settings so you could e.g. have a global
git-user option for KDE modules and then override specific modules or
module-sets with a different git-user setting.

This setting is only applied during the initial git-clone process
though... if there's interest in having kdesrc-build re-apply settings
later that's possible too.
FIXED-IN:15.09

M  +33   -2    doc/index.docbook
M  +20   -0    modules/ksb/Updater/Git.pm
M  +2    -2    vim/syntax/kdesrc-buildrc.vim

http://commits.kde.org/kdesrc-build/21b5eb9371fbb0f5f43f7cba7606c4bdb32fedd4
Comment 3 Michael Pyne 2024-05-10 09:16:48 UTC
Git commit 7c2665eb90aafece2786217021586042c13ac24e by Michael Pyne.
Committed on 12/09/2015 at 20:57.
Pushed by ashark into branch 'docbook_historied_per_file'.

Add git-user option.

This option can be used to setup the user.name and user.email git-config
options within each new git repository cloned or installed from
snapshot, including kde-projects repositories. This can be useful for
KDE developers with multiple Git identities that they use for
development.

Module settings override global settings so you could e.g. have a global
git-user option for KDE modules and then override specific modules or
module-sets with a different git-user setting.

This setting is only applied during the initial git-clone process
though... if there's interest in having kdesrc-build re-apply settings
later that's possible too.
FIXED-IN:15.09

Original commit: 21b5eb93
https://invent.kde.org/sdk/kdesrc-build/-/commit/21b5eb9371fbb0f5f43f7cba7606c4bdb32fedd4

M  +2    -2    doc/index.docbook
M  +31   -0    doc/kdesrc-buildrc/conf-options-table.docbook

https://invent.kde.org/sdk/kdesrc-build/-/commit/7c2665eb90aafece2786217021586042c13ac24e