From: Junio C Hamano <gitster@pobox.com>
To: Duy Nguyen <pclouds@gmail.com>
Cc: Elijah Newren <newren@gmail.com>, Git Mailing List <git@vger.kernel.org>
Subject: Re: [PATCH 1/2] branch.c: remove explicit reference to the_repository
Date: Wed, 15 Aug 2018 10:20:04 -0700 [thread overview]
Message-ID: <xmqqtvnvim2j.fsf@gitster-ct.c.googlers.com> (raw)
In-Reply-To: <CACsJy8B3ip+_sDrpvaZ32a35-6hWkY=eE6g4RObWgbHnf6g8uw@mail.gmail.com> (Duy Nguyen's message of "Wed, 15 Aug 2018 18:52:36 +0200")
Duy Nguyen <pclouds@gmail.com> writes:
> On Wed, Aug 15, 2018 at 6:48 PM Elijah Newren <newren@gmail.com> wrote:
>>
>> On Wed, Aug 15, 2018 at 9:24 AM Nguyễn Thái Ngọc Duy <pclouds@gmail.com> wrote:
>>
>> The patch looks good, but since this touches multiple .c files, I
>> think I'd s/branch.c/branch/ in the subject line.
>
> It is about removing the_repository from branch.c though. As much as I
> want to completely erase the_repository, that would take a lot more
> work.
I do not think this is about removing the_repository from branch.c;
it is primarily about allowing create_branch() to work on an
arbitrary repository instance.
I also do not think remove_branch_state() function belongs to
branch.c in the first place. The state it is clearing is not even
about a "branch". It is state left by the last command that stopped
in the middle; its only callers are "reset", "am --abort/--skip" and
"checkout <another-branch>".
next prev parent reply other threads:[~2018-08-15 17:20 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-15 16:23 [PATCH 1/2] branch.c: remove explicit reference to the_repository Nguyễn Thái Ngọc Duy
2018-08-15 16:23 ` [PATCH 2/2] cherry-pick: fix --quit not deleting CHERRY_PICK_HEAD Nguyễn Thái Ngọc Duy
2018-08-15 17:09 ` Stefan Beller
2018-08-15 17:17 ` Duy Nguyen
2018-08-15 17:22 ` Stefan Beller
2018-08-15 17:26 ` Junio C Hamano
2018-08-15 17:30 ` Duy Nguyen
2018-08-15 17:33 ` Junio C Hamano
2018-08-16 16:06 ` [PATCH v2] " Nguyễn Thái Ngọc Duy
2018-08-16 17:02 ` Junio C Hamano
2018-08-15 16:48 ` [PATCH 1/2] branch.c: remove explicit reference to the_repository Elijah Newren
2018-08-15 16:52 ` Duy Nguyen
2018-08-15 16:58 ` Stefan Beller
2018-08-15 17:11 ` Duy Nguyen
2018-08-15 17:38 ` Junio C Hamano
2018-08-15 17:43 ` Duy Nguyen
2018-08-15 17:20 ` Junio C Hamano [this message]
2018-08-15 17:23 ` Duy Nguyen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqtvnvim2j.fsf@gitster-ct.c.googlers.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=newren@gmail.com \
--cc=pclouds@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).