summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e7977a8)
raw | patch | inline | side by side (parent: e7977a8)
author | Jonas Fonseca <fonseca@diku.dk> | |
Sat, 12 Jun 2010 14:36:28 +0000 (10:36 -0400) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Sat, 12 Jun 2010 14:36:28 +0000 (10:36 -0400) |
NEWS | patch | blob | history | |
manual.txt | patch | blob | history | |
tig.c | patch | blob | history | |
tigrc.5.txt | patch | blob | history |
index 9f44a9f5f3a3b66c2c3d9bc71265da84c9dcdfeb..17424cabdc0bcc12c5368a70e7c6bf8c235ae4d0 100644 (file)
--- a/NEWS
+++ b/NEWS
- Plug several memory leaks.
- Command line arguments are split into diff, revision, and file
- arguments and made available as %(diff-args), %(rev-args), and
- %(file-args). Diff view will limit diffs using %(file-args).
+ arguments and made available as %(diffargs), %(revargs), and
+ %(fileargs). Diff view will limit diffs using %(fileargs).
- Status view: update the file variable when a line is selected so
%(file) works as expected.
- Branch view: add %(branch) symbol providing access to the selected
diff --git a/manual.txt b/manual.txt
index acfe9fd6e441071ab0f733521c5d33a983482db1..be32a3ef61e508710293cdc11733a2473b5719d6 100644 (file)
--- a/manual.txt
+++ b/manual.txt
empty for the root directory.
|%(file) |The currently selected file.
|%(ref) |The reference given to blame or HEAD if undefined.
-|%(rev-args) |The revision arguments passed on the command line.
-|%(file-args) |The file arguments passed on the command line.
-|%(diff-args) |The diff options passed on the command line.
+|%(revargs) |The revision arguments passed on the command line.
+|%(fileargs) |The file arguments passed on the command line.
+|%(diffargs) |The diff options passed on the command line.
|=============================================================================
[[title-window]]
index d7752a2f9131b75d4f7b9a58edad7e1bffdfff12..a82a4686e4696316a00eeb9473d8deb934df6e4b 100644 (file)
--- a/tig.c
+++ b/tig.c
const char *arg = src_argv[argc];
size_t bufpos = 0;
- if (!strcmp(arg, "%(file-args)")) {
+ if (!strcmp(arg, "%(fileargs)")) {
if (!argv_append_array(dst_argv, opt_file_args))
break;
continue;
- } else if (!strcmp(arg, "%(diff-args)")) {
+ } else if (!strcmp(arg, "%(diffargs)")) {
if (!argv_append_array(dst_argv, opt_diff_args))
break;
continue;
- } else if (!strcmp(arg, "%(rev-args)")) {
+ } else if (!strcmp(arg, "%(revargs)")) {
if (!argv_append_array(dst_argv, opt_rev_args))
break;
continue;
static const char *diff_argv[SIZEOF_ARG] = {
"git", "show", "--pretty=fuller", "--no-color", "--root",
"--patch-with-stat", "--find-copies-harder", "-C",
- "%(diff-args)", "%(commit)", "--", "%(file-args)", NULL
+ "%(diffargs)", "%(commit)", "--", "%(fileargs)", NULL
};
static struct view_ops diff_ops = {
static const char *main_argv[SIZEOF_ARG] = {
"git", "log", "--no-color", "--pretty=raw", "--parents",
- "--topo-order", "%(diff-args)", "%(rev-args)",
- "--", "%(file-args)", NULL
+ "--topo-order", "%(diffargs)", "%(revargs)",
+ "--", "%(fileargs)", NULL
};
static bool
diff --git a/tigrc.5.txt b/tigrc.5.txt
index 987e30afe47bfaae18b640e6e907e513a17eae6d..6c88563b90c64c900873fdbe68551d3a2a738353 100644 (file)
--- a/tigrc.5.txt
+++ b/tigrc.5.txt
empty for the root directory.
|%(file) |The currently selected file.
|%(ref) |The reference given to blame or HEAD if undefined.
-|%(rev-args) |The revision arguments passed on the command line.
-|%(file-args) |The file arguments passed on the command line.
-|%(diff-args) |The diff options passed on the command line.
+|%(revargs) |The revision arguments passed on the command line.
+|%(fileargs) |The file arguments passed on the command line.
+|%(diffargs) |The diff options passed on the command line.
|=============================================================================
As an example, the following external command will save the current commit as