mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-23 01:14:04 +02:00
eeshow/gui.c: limit = 0 means "no limit", not "no revisions"
This commit is contained in:
parent
62ca12c2da
commit
d1fdcaeab4
@ -1234,6 +1234,7 @@ static void add_hist(void *user, struct hist *h)
|
|||||||
|
|
||||||
if (!ahc->limit)
|
if (!ahc->limit)
|
||||||
return;
|
return;
|
||||||
|
if (ahc->limit > 0)
|
||||||
ahc->limit--;
|
ahc->limit--;
|
||||||
|
|
||||||
prev = NULL;
|
prev = NULL;
|
||||||
@ -1263,7 +1264,7 @@ static void get_revisions(struct gui_ctx *ctx,
|
|||||||
.n_args = n_args,
|
.n_args = n_args,
|
||||||
.args = args,
|
.args = args,
|
||||||
.recurse = recurse,
|
.recurse = recurse,
|
||||||
.limit = limit < 0 ? -limit : limit,
|
.limit = limit ? limit < 0 ? -limit : limit : -1,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!vcs_git_try(sch_name)) {
|
if (!vcs_git_try(sch_name)) {
|
||||||
|
@ -56,7 +56,7 @@ void usage(const char *name)
|
|||||||
" -v increase verbosity of diagnostic output\n"
|
" -v increase verbosity of diagnostic output\n"
|
||||||
" -C 'cat' the file to standard output\n"
|
" -C 'cat' the file to standard output\n"
|
||||||
" -H show history of repository on standard output\n"
|
" -H show history of repository on standard output\n"
|
||||||
" -N n limit history to n revisions\n"
|
" -N n limit history to n revisions (unlimited if omitted or 0)\n"
|
||||||
"\n"
|
"\n"
|
||||||
"No driver spec: enter GUI\n"
|
"No driver spec: enter GUI\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user