On Wed, 9 May 2012 09:38:07 -0500 Steve French <smfrench@xxxxxxxxx> wrote: > On Wed, May 9, 2012 at 9:04 AM, Sachin Prabhu <sprabhu@xxxxxxxxxx> wrote: > > On Wed, 2012-05-09 at 09:45 -0400, Jeff Layton wrote: > >> On Wed, 9 May 2012 08:19:05 -0500 > >> Steve French <smfrench@xxxxxxxxx> wrote: > >> > >> > Trying to figure out the easiest way for the workflow for the new > >> > cifs-2.6.git linux-next branch for this scenario: > >> > > >> > - push a series of patches to cifs-2.6.git linux-next > >> > - someone adds an ack to a patch in the middle, or even a coding > >> > change to a patch in the middle > >> > - how do I easiest make this change and repush (without constantly > >> > doing git push --force) > >> > > >> > Do I rename the branch on my local workstation, do a git push (what is > >> > the option to delete a branch remotely...?), then switch on the local > >> > box to the newly renamed branch, amend the patch (will gitk or other > >> > gui tool make this easier than what I use today which is git command > >> > line option which launches a vi-like interface which is a little bit > >> > of a pain), rename the branch back and then push the new linux-next > >> > branch (and create it on the remote server) .... > >> > > >> > >> The upstream linux-next tree is recreated from scratch every time. So, > >> there's no harm in rebasing that branch, or rewriting its history. Only > >> the end product matters. > >> > >> I use stgit heavily, so editing a patch description in the middle of a > >> stack is trivial. Not sure what you can do with regular git tools or > >> something like gitk. > >> > >> I guess you could create a new branch and cherry-pick all of the > >> patches from the old, while doing something like "git commit --amend" > >> to add Reviewed-by lines and such. It's a bit cumbersome, but the basic > >> git tools are sort of primitive for this sort of thing... > >> > > > > I've used git rebase -i <commit list> > > to amend the commit messages, reorder the patches and also to squash > > multiple patches into a single patch. However I am not sure you can push > > a branch modified in this manner to a remote server. If you are using a > > fresh remote branch each time, this is a non issue. > > since you can't manipulate the sparse trees directly on git.samba.org as easily, > then the problem is how do you best do "git remote-branch-delete" and 2nd > what is best gui for editing a patch description in middle (git rebase > -i or commit --amend > works but is harder to use) > > This will delete a remote branch: $ git push <remotename> :<remote branch name> ...then just re-push the branch. $ git push <remotename> <local branch>:<remote branch> -- Jeff Layton <jlayton@xxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html