#52 Make "fedpkg switch-branch" showing which branch I'm actually on
Closed: Fixed None Opened 13 years ago by robert.

Please make "fedpkg switch-branch" showing which branch I'm actually on like "git branch" is doing already. As alternative, please add "fedpkg branch".

{{{
$ fedpkg switch-branch
Locals:
el4
el5
el6
f12
f13
f14
master
Remotes:
origin/el4/master
origin/el5/master
origin/el6/master
origin/f12/master
origin/f13/master
origin/f14/master
origin/master
$
}}}

{{{
$ git branch
el4
el5
el6
f12
f13
f14
* master
$
}}}


Could we talk to FESCo about allowing the fedora-packager RPM to alter /etc/bashrc to include the settings from https://fedoraproject.org/wiki/Git_Quickref#Display_current_branch_in_bash ?

This would make life a lot easier for developers.

This is not an option for me and this idea does not satisfy my request. I really dislike the idea of blowing up the standard bashrc like openSUSE does nowadays - which makes starting a new bash ugly slow, because all the stuff inside of the bashrc is getting read and executed etc.

If you really want such a bash prompt thing, put a /etc/profile.d/fedora-packager.sh into the fedora-packager script and do it maye there, but never for the default bashrc!

Just committed something that will make this happen. it's not my proudest code, but it works.

Login to comment on this ticket.

Metadata