Has anyone else noticed false positives coming from the
orphan check? It is warning me about commits that are
clearly on master. Here is an example, where I checkout
master~2 and then switch back to master. It somehow thinks
that master~2 is orphaned, when master~2 is by definition
in the commit chain leading to master.
The repo is tiny, so anyone can try and reproduce this. (I've
done so on v1.7.9 and v1.7.11, on two different machines).
paul@foo:~/git/yocto-kernel-tools$ git checkout master~2
Note: checking out 'master~2'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again.
git checkout -b new_branch_name
HEAD is now at e693754... kgit-checkpoint: fix verify_branch variable
paul@foo:~/git/yocto-kernel-tools$ git checkout master
Warning: you are leaving 38 commits behind, not connected to
any of your branches:
e693754 kgit-checkpoint: fix verify_branch variable name typo
ee67a7b kgit-config-cleaner: fix redefintion processing
579b1ba meta: support flexible meta branch naming
4673bdb scc: allow kconf fragment searching
... and 34 more.
If you want to keep them by creating a new branch, this may be a good time
to do so with:
git branch new_branch_name e6937544e030637cec029edee34737846a036ece
Switched to branch 'master'
paul@foo:~/git/yocto-kernel-tools$ git branch --contains
paul@foo:~/git/yocto-kernel-tools$ git --version
git version 184.108.40.206
paul@foo:~/git/yocto-kernel-tools$ cat .git/config
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
fetch = +refs/heads/*:refs/remotes/origin/*
url = git://git.yoctoproject.org/yocto-kernel-tools.git
remote = origin
merge = refs/heads/master
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html