[PATCH 0/4] Remove references to the global context variable

Lukas Fleischer cgit at cryptocrack.de
Wed Jan 15 22:37:03 CET 2014


Jason noticed that sometimes, we pass a reference (pointer) to the
global context variable. This series removes all such references and
replaces them with direct use of the global variable.

Most of the patches are much easier to review with the following
options:

    --word-diff=color --word-diff-regex='[a-zA-Z_]+|->|\.'

Comments welcome!

Lukas Fleischer (4):
  Remove context parameter from cgit_print_*()
  Remove context parameter from all commands
  cgit.c: Remove context parameter from initializations
  Remove callback data parameter for cache slots

 cache.c       |  14 ++-
 cache.h       |   5 +-
 cgit.c        | 249 ++++++++++++++++++++++++------------------------
 cmd.c         | 102 ++++++++++----------
 cmd.h         |   4 +-
 ui-atom.c     |   2 +-
 ui-blob.c     |   2 +-
 ui-clone.c    |  48 +++++-----
 ui-clone.h    |   6 +-
 ui-diff.c     |   2 +-
 ui-patch.c    |   2 +-
 ui-plain.c    |  14 +--
 ui-plain.h    |   2 +-
 ui-repolist.c |   6 +-
 ui-shared.c   | 297 +++++++++++++++++++++++++++++-----------------------------
 ui-shared.h   |   6 +-
 ui-snapshot.c |   8 +-
 ui-stats.c    |  29 +++---
 ui-stats.h    |   2 +-
 19 files changed, 397 insertions(+), 403 deletions(-)

-- 
1.8.5.2



More information about the CGit mailing list