[PATCH 00/41] Add and use error_errno() and warning_errno()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a spinoff from my worktree-move topic. This series adds
die_errno() companions, error_errno() and warning_errno(), and use them
where applicable to reduce the amount of typing (in future). Changes
are split by file (which explains the huge number of patches). I leave
builtin/apply.c and refs/files-backend.c untouched because they are
currently hot zones.

Nguyễn Thái Ngọc Duy (41):
  usage.c: move format processing out of die_errno()
  usage.c: add warning_errno() and error_errno()
  bisect.c: use die_errno() and warning_errno()
  builtin/am.c: use error_errno()
  builtin/branch.c: use error_errno()
  builtin/fetch.c: use error_errno()
  builtin/help.c: use warning_errno()
  builtin/mailsplit.c: use error_errno()
  builtin/merge-file.c: use error_errno()
  builtin/pack-objects.c: use die_errno() and warning_errno()
  builtin/rm.c: use warning_errno()
  builtin/update-index.c: use error_errno()
  builtin/upload-archive.c: use error_errno()
  builtin/worktree.c: use error_errno()
  check-racy.c: use error_errno()
  combine-diff.c: use error_errno()
  compat/win32/syslog.c: use warning_errno()
  config.c: use error_errno()
  connected.c: use error_errno()
  copy.c: use error_errno()
  credential-cache--daemon.c: use warning_errno()
  diff-no-index.c: use error_errno()
  editor.c: use error_errno()
  entry.c: use error_errno()
  fast-import.c: use error_errno()
  gpg-interface.c: use error_errno()
  grep.c: use error_errno()
  http.c: use error_errno() and warning_errno()
  ident.c: use warning_errno()
  mailmap.c: use error_errno()
  reachable.c: use error_errno()
  rerere.c: use error_errno() and warning_errno()
  run-command.c: use error_errno()
  sequencer.c: use error_errno()
  server-info.c: use error_errno()
  sha1_file.c: use {error,die,warning}_errno()
  transport-helper.c: use error_errno()
  unpack-trees.c: use error_errno()
  upload-pack.c: use error_errno()
  vcs-svn: use error_errno()
  wrapper.c: use warning_errno()

 bisect.c                   |  7 +++----
 builtin/am.c               | 11 +++++------
 builtin/branch.c           |  3 +--
 builtin/fetch.c            |  4 ++--
 builtin/help.c             |  8 ++++----
 builtin/mailsplit.c        | 10 +++++-----
 builtin/merge-file.c       | 10 +++++-----
 builtin/pack-objects.c     |  8 +++-----
 builtin/rm.c               |  2 +-
 builtin/update-index.c     |  8 ++++----
 builtin/upload-archive.c   |  3 +--
 builtin/worktree.c         |  2 +-
 check-racy.c               |  2 +-
 combine-diff.c             |  3 +--
 compat/win32/syslog.c      |  6 +++---
 config.c                   | 22 +++++++++-------------
 connected.c                |  9 +++------
 copy.c                     |  6 +++---
 credential-cache--daemon.c |  4 ++--
 diff-no-index.c            |  3 +--
 editor.c                   |  3 +--
 entry.c                    | 10 ++++------
 fast-import.c              | 10 +++++-----
 git-compat-util.h          |  2 ++
 gpg-interface.c            |  6 ++----
 grep.c                     |  4 ++--
 http.c                     | 10 ++++------
 ident.c                    |  8 +++-----
 mailmap.c                  |  3 +--
 reachable.c                |  3 +--
 rerere.c                   | 18 +++++++-----------
 run-command.c              | 15 +++++++--------
 sequencer.c                |  3 +--
 server-info.c              |  2 +-
 sha1_file.c                | 32 +++++++++++++-------------------
 transport-helper.c         |  6 +++---
 unpack-trees.c             |  6 ++----
 upload-pack.c              |  3 +--
 usage.c                    | 44 ++++++++++++++++++++++++++++++++++----------
 vcs-svn/line_buffer.c      |  4 ++--
 vcs-svn/sliding_window.c   |  2 +-
 vcs-svn/svndiff.c          |  4 ++--
 vcs-svn/svndump.c          |  4 ++--
 wrapper.c                  |  4 ++--
 44 files changed, 161 insertions(+), 176 deletions(-)

-- 
2.8.0.rc0.210.gd302cd2

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]