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

[PATCH 0/3] remove static vars from "builtin-rev-list.c"

From
Christian Couder <chriscool@tuxfamily.org>
Date
Apr 7, 2009, 04:50 UTC
Message-ID
<20090407065012.c6528241.chriscool@tuxfamily.org>

This patch series removes all static variables from "builtin-rev-list.c" except the usage string.

This cleans up the code and should please Dscho.

It also makes it possible to remove restrictions on using the "sho_bisect_vars" function.

  list-objects: add "void *data" parameter to show functions
  rev-list: remove last static vars used in "show_commit"
  rev-list: add "int bisect_show_flags" in "struct rev_list_info"
 bisect.c               |    8 +++-
 bisect.h               |   18 ++++----
 builtin-pack-objects.c |    6 +-
 builtin-rev-list.c     |  109 ++++++++++++++++++++++++------------------------
 list-objects.c         |    9 ++--
 list-objects.h         |    6 +-
 upload-pack.c          |    6 +-
 7 files changed, 84 insertions(+), 78 deletions(-)
PS: Sorry but it looks like the script I used to send this series has some bugs.
First the date in the email are wrong, and then I have to resend this cover letter
because it did not appear on the mailing list.
Message 1 of 1 in “remove static vars from "builtin-rev-list.c"”
  1. 0/3 remove static vars from "builtin-rev-list.c"Christian Couder, Apr 7, 2009

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.