git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Quint Guvernator <quintus.public@gmail.com>
To: git@vger.kernel.org
Cc: Quint Guvernator <quintus.public@gmail.com>
Subject: [PATCH v4 0/1] general style: replaces memcmp() with starts_with()
Date: Mon, 17 Mar 2014 17:52:23 -0400	[thread overview]
Message-ID: <1395093144-6786-1-git-send-email-quintus.public@gmail.com> (raw)

Hi again, all.

I've gone through the patch again to filter for the use of magic numbers so
that I can leave those hunks alone. Junio says, and Michael agrees, that:

> The original hunks show that the code knows and relies on magic numbers 7
> and 8 very clearly and there are rooms for improvement.  The result after
> the conversion, however, still have the same magic numbers, but one less
> of them each.  Doesn't it make it harder to later spot the patterns to
> come up with a better abstraction that does not rely on the magic number?

I cut this one down very sharply; Michael says:

> It would be much better for you to submit only a handful of changes (or
> even only one!) that is perfect, rather than throwing a bunch at the wall
> and asking the reviewer to pick between the good and the bad.

Thanks for the guidance, everyone.

This work is microproject #14 for GSoC.

Quint Guvernator (1):
  general style: replaces memcmp() with starts_with()

 builtin/apply.c        |  6 +++---
 builtin/for-each-ref.c |  2 +-
 builtin/mktag.c        |  4 ++--
 builtin/patch-id.c     | 10 +++++-----
 connect.c              |  4 ++--
 imap-send.c            |  6 +++---
 remote.c               |  2 +-
 7 files changed, 17 insertions(+), 17 deletions(-)

-- 
1.9.0

             reply	other threads:[~2014-03-17 21:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-17 21:52 Quint Guvernator [this message]
2014-03-17 21:52 ` [PATCH 1/1] general style: replaces memcmp() with starts_with() Quint Guvernator
2014-03-17 22:52   ` Junio C Hamano
2014-03-17 23:01     ` Jeff King
2014-03-17 23:07       ` Junio C Hamano
2014-03-18  2:41         ` Jeff King
2014-03-17 23:46     ` Quint Guvernator
2014-03-18  1:59       ` Eric Sunshine
2014-03-18  2:33         ` Quint Guvernator
2014-03-18  4:07           ` Eric Sunshine
2014-03-18 19:23             ` Junio C Hamano
2014-03-17 21:53 ` [PATCH v4 0/1] " Quint Guvernator

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=1395093144-6786-1-git-send-email-quintus.public@gmail.com \
    --to=quintus.public@gmail.com \
    --cc=git@vger.kernel.org \
    /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).