Same here. I'd imagine temporary build-fixes to live as a patch-file
generated by
git diff > build-fixes.diff
after having hacked on the tree. There's no sane way of inserting
commits into the middle of the DAG, so committing on something that
isn't a branch with the intention of losing it is just plain weird.
Yes. I'd imagine "git merge --no-commit" could be used for this, to
merge things only in the working directory.
Perhaps, but this is also a bit weird, as you would normally hack things
up to fit on top of some already existing branch, so then you'd detach
the head but point it to something that already has a branch-name
associated with it.
Otoh, I could imagine this would be sort of nifty for applying bugfixes
on top of old tags, so perhaps it's not so weird after all. Then you'd
probably want to create a new tag before releasing the bugfixed version,
so Linus suggestion makes sense in this case (assuming it doesn't fsck
up the bisect case, ofc).
Yes. I'd imagine "git merge --no-commit" could be used for this, to
merge things only in the working directory. We could easily create a
hack for this by doing a "git reset --mixed HEAD^1" after the merge is
complete.
Agreed. They really are two completely different things. I see no harm
in splitting them up codewise. Bisect could start working without its
protected branch straight away, but commits (and merges) to detached
heads wouldn't work at all. Then we can see what use people put this to
and what walls they run into and make the feature accordingly.
--
Andreas Ericsson andreas.ericsson@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html