git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: parth gala <parthpgala@gmail.com>
To: Taylor Blau <me@ttaylorr.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Fwd: Re: [PATCH 0/5] object.c: localize global the_repository variable into r
Date: Thu, 13 Feb 2020 03:55:57 +0530	[thread overview]
Message-ID: <dac7264e-969d-259f-3d43-ac69a628d624@gmail.com> (raw)
In-Reply-To: <4cb3c2cc-b73d-0ea6-1f56-4c7a18d05532@gmail.com>




-------- Forwarded Message --------
Subject: 	Re: [PATCH 0/5] object.c: localize global the_repository 
variable into r
Date: 	Thu, 13 Feb 2020 03:26:30 +0530
From: 	parth gala <parthpgala@gmail.com>
To: 	Taylor Blau <me@ttaylorr.com>




On 13/02/20 1:48 am, Taylor Blau wrote:
> Hi Parth,
>
> On Wed, Feb 12, 2020 at 07:19:06PM +0000, Parth Gala via GitGitGadget wrote:
>> I have created this commit in response to
>> https://github.com/gitgitgadget/git/issues/379#issue-503866117.
> Fantastic! Thank you for working on this.
>
>> All the functions in object.c which relied on 'the_repository' have
>> been modified.  The functions calling these functions in object.c
>> consisted calls to other functions using 'the_repository' as well, and
>> although I intended to use 'r' at all those instances, I thought it
>> would make more sense when we would deal with their callee functions
>> in another similar patch. What do you think ?
> That makes sense, and follows the conventions that other similar
> refactorings have done in the past.
>
> Any reason why you decided to start with 'object.c'? Not that any such
> reason is necessary, I'm just curious about how you came to this
> decision.

I am new to the git community and while searching for issues to solve I
found the issue linked above.
I figured solving it would give me a good experience navigating
and exploring the huge repository.

Initially I grepped to find all functions using `the_repository` but
randomly chose object.c since the refactoring had to start somewhere.
Special thanks to Johannes Schindelin for this.

>> Signed-off-by: Parth Gala parthpgala@gmail.com [parthpgala@gmail.com]
> Even though you *do* need a 'Signed-off-by' in each of your patches,
> adding it in the cover letter is not necessary.

I probably did not check the preview I sent to myself carefully for
this. Will make note of it.

>> Parth Gala (5):
>>     object.c: get_max_object_index and get_indexed_object accept 'r'
>>       parameter
>>     object.c: lookup_unknown_object() accept 'r' as parameter
>>     object.c: parse_object_or_die() accept 'r' as parameter
>>     object.c: clear_object_flags() accept 'r' as parameter
>>     object.c: clear_commit_marks_all() accept 'r' as parameter
>>
>>    builtin/checkout.c               |  3 ++-
>>    builtin/fsck.c                   |  8 +++++---
>>    builtin/grep.c                   |  6 ++++--
>>    builtin/index-pack.c             |  5 +++--
>>    builtin/log.c                    |  3 ++-
>>    builtin/name-rev.c               |  5 +++--
>>    builtin/pack-objects.c           |  3 ++-
>>    builtin/prune.c                  |  3 ++-
>>    bundle.c                         |  8 +++++---
>>    http-push.c                      |  3 ++-
>>    object.c                         | 32 ++++++++++++++++----------------
>>    object.h                         | 12 ++++++------
>>    pack-bitmap.c                    |  5 +++--
>>    reachable.c                      |  6 ++++--
>>    refs.c                           |  3 ++-
>>    revision.c                       |  3 ++-
>>    shallow.c                        | 13 ++++++++-----
>>    t/helper/test-example-decorate.c |  7 ++++---
>>    upload-pack.c                    | 19 ++++++++++++-------
>>    walker.c                         |  3 ++-
>>    20 files changed, 89 insertions(+), 61 deletions(-)
>>
>>
>> base-commit: 0ad714499976290d9a0229230cbe4efae930b8dc
>> Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-545%2FParthGala2k%2Flocalize-the_repository-variable-v1
>> Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-545/ParthGala2k/localize-the_repository-variable-v1
>> Pull-Request: https://github.com/gitgitgadget/git/pull/545
>> --
>> gitgitgadget
> Thanks,
> Taylor

           reply	other threads:[~2020-02-12 22:26 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <4cb3c2cc-b73d-0ea6-1f56-4c7a18d05532@gmail.com>]

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

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dac7264e-969d-259f-3d43-ac69a628d624@gmail.com \
    --to=parthpgala@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=me@ttaylorr.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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).