git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/6] cache_tree_find() workover
@ 2014-03-05 17:26 Michael Haggerty
  2014-03-05 17:26 ` [PATCH v3 1/6] cache_tree_find(): remove redundant checks Michael Haggerty
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Michael Haggerty @ 2014-03-05 17:26 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: David Kastrup, git, Michael Haggerty

Who would have expected so much slop in one little function?  Here are
the changes coming out of a long email thread.

I feel a little bit silly submitting six separate patches, but they
really are independent.  And two of the changes were suggested by
other people, so splitting those out, at least, helps give credit
where it is due.  But feel free to squash the patches together if you
think it is best.

Changes since v2 (aside from the atomization):

* Use strchrnul() to initialize slash (as suggested by Junio)

* Don't initialize variable at declaration (as per Junio's
  preference).

Thanks to Junio and David for this workout.

Michael Haggerty (6):
  cache_tree_find(): remove redundant checks
  cache_tree_find(): initialize slash using strchrnul()
  cache_tree_find(): fix comment formatting
  cache_tree_find(): remove redundant check
  cache_tree_find(): remove early return
  cache_tree_find(): use path variable when passing over slashes

 cache-tree.c | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

-- 
1.9.0

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-03-05 17:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-05 17:26 [PATCH v3 0/6] cache_tree_find() workover Michael Haggerty
2014-03-05 17:26 ` [PATCH v3 1/6] cache_tree_find(): remove redundant checks Michael Haggerty
2014-03-05 17:26 ` [PATCH v3 2/6] cache_tree_find(): initialize slash using strchrnul() Michael Haggerty
2014-03-05 17:26 ` [PATCH v3 3/6] cache_tree_find(): fix comment formatting Michael Haggerty
2014-03-05 17:26 ` [PATCH v3 4/6] cache_tree_find(): remove redundant check Michael Haggerty
2014-03-05 17:26 ` [PATCH v3 5/6] cache_tree_find(): remove early return Michael Haggerty
2014-03-05 17:26 ` [PATCH v3 6/6] cache_tree_find(): use path variable when passing over slashes Michael Haggerty

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).