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

ds/branch-checked-out (was Re: What's cooking in git.git (Jun 2022, #03; Fri, 10))

From
Derrick Stolee <derrickstolee@github.com>
Date
Jun 13, 2022, 15:01 UTC
Message-ID
<07eb5cce-2948-a653-a941-c8fe0924aee2@github.com>
In-Reply-To
<xmqqsfobc1hw.fsf@gitster.g>
On 6/10/2022 11:39 PM, Junio C Hamano wrote:
Show 13 quoted lines
> * ds/branch-checked-out (2022-06-08) 4 commits
>  - branch: use branch_checked_out() when deleting refs
>  - fetch: use new branch_checked_out() and add tests
>  - branch: check for bisects and rebases
>  - branch: add branch_checked_out() helper
> 
>  Introduce a helper to see if a branch is already being worked on
>  (hence should not be newly checked out in a working tree), which
>  performs much better than the existing find_shared_symref() to
>  replace many uses of the latter.
> 
>  Will merge to 'next'?
>  source: <pull.1254.git.1654718942.gitgitgadget@gmail.com>

I sent a new patch that sits on top, fixing the memory leak that you pointed out. Please take a look when you have time.

Show 19 quoted lines
> --------------------------------------------------
> [Discarded]
> 
> * ds/rebase-update-refs (2022-06-07) 7 commits
>  . rebase: add rebase.updateRefs config option
>  . sequencer: implement 'update-refs' command
>  . rebase: add --update-refs option
>  . sequencer: add update-refs command
>  . sequencer: define array with enum values
>  . branch: add branch_checked_out() helper
>  . log-tree: create for_each_decoration()
> 
>  "git rebase" learns "--update-refs" to update the refs that point
>  at commits being rewritten so that they point at the corresponding
>  commits in the rewritten history.
> 
>  Retracted for possible future redesign.
>  cf. <pull.1254.git.1654718942.gitgitgadget@gmail.com>
>  source: <pull.1247.v2.git.1654634569.gitgitgadget@gmail.com>
Thanks. I will revisit this topic after the release window.
-Stolee
Previous: Philippe Blain
Message 3 of 3 in “What's cooking in git.git (Jun 2022, #03; Fri, 10)”
  1. Junio C HamanoJun 11, 2022
  2. pb/range-diff-with-submodule (was: Re: What's cooking in git.git (Jun 2022, #03; Fri, 10))Philippe Blain, Jun 11, 2022
  3. ds/branch-checked-out (was Re: What's cooking in git.git (Jun 2022, #03; Fri, 10))Derrick Stolee, Jun 13, 2022

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.