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

Re: What's cooking in git.git (Sep 2014, #01; Tue, 2)

From
Duy Nguyen <pclouds@gmail.com>
Date
Sep 5, 2014, 01:18 UTC
Message-ID
<CACsJy8AyrGeLJ-B+81ZNQaKGvNV5YNnZ_RWUumvhKR-tvTrg9A@mail.gmail.com>
In-Reply-To
<xmqqmwafux3y.fsf@gitster.dls.corp.google.com>
On Fri, Sep 5, 2014 at 12:14 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 35 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
>
>> Duy Nguyen <pclouds@gmail.com> writes:
>>
>>> On Wed, Sep 3, 2014 at 5:06 AM, Junio C Hamano <gitster@pobox.com> wrote:
>>>> * nd/multiple-work-trees (2014-07-29) 39 commits
>>>>
>>>>  Reroll posted, but haven't picked up yet.  How would this interact
>>>>  with rr/transaction series which is pretty much all about the refs?
>>>
>>> Haven't checked out that topic yet. But ref changes in
>>> multiple-work-trees are to make sure ref path construction goess
>>> through git_path(), and some cleaning up after strbuf_git_path() is
>>> introduced. So basically textual conflicts only.
>>
>> Up to the point that is queued on 'pu', the other topic(s) still
>> keep the assumption that all refs are files in $GIT_DIR/refs/, and I
>> think I managed the textual conflicts correctly in 'pu' before.
>
> One point that caused unnecessary conflict resolution was that the
> transaction series lacked "let's use strbuf to hold paths".  This
> had two immediate side effects, i.e. "instead of returning upon
> errors, jump to the end with 'goto done/fail' for necessary
> clean-up" and "get rid of git_snpath and use strbuf_git_path", both
> of which are good general clean-ups, even if they weren't related to
> the multiple worktrees feature, that conflicted with the transaction
> series when getting merged.
>
> You can see the interactions by checking
>
>     $ git show 'pu^{/^Merge branch .nd/multi}' refs.c
>
> Perhaps these three changes, without the addition of the multiple
> worktree feature, should come first as a general clean-up on top of
> which both topics can be built?

If that makes your life easier, sure. Changes up until (and including) c88c438 (setup.c: convert is_git_directory() to use strbuf - 2014-08-30) could be considered cleanups. After that commit, refs.c is not touched. Will look at your conflict resultion later..

-- 
Duy
Previous: Junio C HamanoNext: Duy Nguyen
Message 10 of 12 in “What's cooking in git.git (Sep 2014, #01; Tue, 2)”
  1. Junio C HamanoSep 2, 2014
  2. Johannes SixtSep 3, 2014
  3. Torsten BögershausenSep 3, 2014
  4. Junio C HamanoSep 3, 2014
  5. Keller, Jacob ESep 3, 2014
  6. Duy NguyenSep 4, 2014
  7. Junio C HamanoSep 4, 2014
  8. Junio C HamanoSep 4, 2014
  9. Junio C HamanoSep 4, 2014
  10. Duy NguyenSep 5, 2014
  11. Duy NguyenSep 5, 2014
  12. Tommy38Mar 26, 2015

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.