Description of problem: If I start out working (say) in f16 and make some changes, then decide to look at whether those changes are applicable in rawhide or el6, I need to manually do a "git stash" when switching branches... then remember to pop (apply?) them when I return to the previous branch. Version-Release number of selected component (if applicable): 1.6-1 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
This is a limitation of git itself, it won't let you switch branches when you have modified content.
(In reply to comment #1) > This is a limitation of git itself, it won't let you switch branches when you > have modified content. Right, but since fedpkg is a script, you can make it do what you want, including stash any changes when switching to an alternate branch, and then restore them when switching back. If you do the stash before the branch, then it works.
Dealing with stashes requires a bit more advanced knowledge of how git works, not something I'd want to impose upon people in a default setting. An option to switch-branch that would cause a stash and re-apply might be useful, but not something I'm going to spend time on at this point.
(In reply to comment #3) > Dealing with stashes requires a bit more advanced knowledge of how git works, > not something I'd want to impose upon people in a default setting. An option > to switch-branch that would cause a stash and re-apply might be useful, but not > something I'm going to spend time on at this point. If you did that would be awesome: before filing the bug I took an informal poll on #fedora-devel and there was interest in it.
Not to send you on a goose chase, but if you file it as an enhancement request at https://fedorahosted.org/rpkg then maybe somebody else will pick it up before I look at it and submit patches. Something like this belongs in the core rpkg library.
(In reply to comment #5) > Not to send you on a goose chase, but if you file it as an enhancement request > at https://fedorahosted.org/rpkg then maybe somebody else will pick it up > before I look at it and submit patches. Something like this belongs in the > core rpkg library. Well, I would if I had a trac account on fedorahosted.org but I don't...
https://fedorahosted.org/rpkg/ticket/8
(In reply to comment #7) > https://fedorahosted.org/rpkg/ticket/8 Awesome, thanks.