git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: bug or a general misunderstanding

From
Jeff King <peff@peff.net>
Date
Nov 15, 2021, 21:08 UTC
Message-ID
<YZLMVk3ULURAelQ2@coredump.intra.peff.net>
In-Reply-To
<468f30fbff6f1fcf708c484c19c287b7@posteo.de>
On Mon, Nov 15, 2021 at 10:56:00AM +0000, andre_pohlmann@posteo.de wrote:
Show 5 quoted lines
> 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
Previous: andre_pohlmann@posteo.deNext: andre_pohlmann@posteo.de
Message 6 of 7 in “bug or a general misunderstanding”
  1. andre_pohlmann@posteo.deNov 10, 2021
  2. Ævar Arnfjörð BjarmasonNov 10, 2021
  3. Johannes SchindelinNov 10, 2021
  4. andre_pohlmann@posteo.deNov 10, 2021
  5. andre_pohlmann@posteo.deNov 15, 2021
  6. Jeff KingNov 15, 2021
  7. andre_pohlmann@posteo.deNov 16, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.