Re: bug or a general misunderstanding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Good Morning Peff,

I am not sure how to interpret the result. I just get a graph displayed.
Does this refer to the current branch?

Is it possible that the commit 48c8756e is in the history of a branch but not an ancestor of ff2c8952? Would this mean that GIT ignores commits in the history if they are not direct ancestors of the commit from which the branch is created?

And why is the behavior of creating the branch different compared to Git Hub Desktop?

André


Am 15.11.2021 22:08 schrieb Jeff King:
On Mon, Nov 15, 2021 at 10:56:00AM +0000, andre_pohlmann@xxxxxxxxx wrote:

Starting from the relevant branch

git branch TEST_1
git checkout TEST_1
git status

OK, so TEST_1 points at something. We don't know what, but from below,
it sounds like the BBV branch.

then

git checkout BBV ---- that is the original Branch
git branch TEST_2 ff2c8952 ---- the commit to check out from

OK, so now TEST_2 is created from ff2c8952. But from the details you've
given, we don't know what relationship that has to what was on BBV, or
any other commit.

git checkout TEST_2
git status

And now it's our HEAD, though I don't think that matters, because...

git branch --contains 48c8756e ---- the commit with the specific code

...this is asking which branches contain 48c8756e, and doesn't care
about HEAD at all.

the result is that only TEST_1 is shown, not TEST_2.
It looks to me like the commit is missing.

I can't say if this is a bug or not, without knowing the relationship
between 48c8756e and ff2c8952. Have you tried something like:

  git log --oneline --graph 48c8756e...ff2c8952

That should show you whether one is an ancestor of the other.

-Peff




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux