Difference between pushing to refs/head/* and refs/for/*

3,299 views
Skip to first unread message

hari

unread,
Oct 19, 2010, 5:30:38 AM10/19/10
to Repo and Gerrit Discussion
Hi,

Can someone explain me the difference in pushing the code to HEAD:refs/
head/* and HEAD:refs/for* in gerrit? Also is there a way to push my
changes to gerrit without committing the changes in my clone?

Karsten Dambekalns

unread,
Oct 19, 2010, 5:52:58 AM10/19/10
to Repo and Gerrit Discussion
Hi.

On 19.10.2010, at 11:30, hari wrote:
> Can someone explain me the difference in pushing the code to HEAD:refs/
> head/* and HEAD:refs/for* in gerrit?

Pushing to refs/head/* circumvents code review (the change will not show up in the gerrit ui), wheres refs/for/* creates a change record for review.

> Also is there a way to push my
> changes to gerrit without committing the changes in my clone?

No, you need to commit before you can push, that's just regular git behaviour. If you want to keep your local repository "clean", you should do all work in topic branches (you should do that anyway). That way you can simply delete those branches after you pushed your changes to gerrit.

Regards,
Karsten

Reply all
Reply to author
Forward
0 new messages