[PATCH 0/4] Allow detached forms (--option arg) for git log and friends

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

 



After discssion on the early RFC, I decided that a migration to
parse-option would be too much work given my git time budget and the
expected benefits. I'm accomplishing the same goal with very simple
macros, and one can now do e.g.

  git log -S foo
  git log --grep bar

Options with optional arguments do not accept this form.

To ease review, I'm splitting the serie into 4 batches of applications
of the same pattern.

Matthieu Moy (4):
  Allow detached form (e.g. "-S foo" instead of "-Sfoo") for diff
    options
  Allow detached form for git diff --stat-name-width and --stat-width.
  Allow detached form (e.g. "git log --grep foo") in log options.
  Allow detached form for --glob, --branches, --tags and --remote.

 diff.c                       |   75 +++++++++++++++++++++------
 diff.h                       |   15 +++++
 revision.c                   |  117 +++++++++++++++++++++++++++---------------
 t/t4013-diff-various.sh      |    1 +
 t/t4013/diff.log_-S_F_master |    7 +++
 t/t4202-log.sh               |   12 ++++
 t/t6018-rev-list-glob.sh     |    6 ++
 7 files changed, 176 insertions(+), 57 deletions(-)
 create mode 100644 t/t4013/diff.log_-S_F_master

-- 
1.7.2.25.g9ebe3

--
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]