chiark
/
gitweb
/
~mdw
/
tig
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
eb98559
)
Use --topo-order; fclose(stdin); space cleanup
author
Jonas Fonseca
<fonseca@diku.dk>
Sat, 13 May 2006 21:44:21 +0000
(23:44 +0200)
committer
Jonas Fonseca
<fonseca@antimatter.localdomain>
Sat, 13 May 2006 21:44:21 +0000
(23:44 +0200)
tig.c
patch
|
blob
|
blame
|
history
diff --git
a/tig.c
b/tig.c
index c5f5419a7284649ca2cdd824f91740439d22e4c2..6788d0e8d01142d7effdc1f8493e6ce2a5837e37 100644
(file)
--- a/
tig.c
+++ b/
tig.c
@@
-635,7
+635,7
@@
static struct view_ops main_ops;
"git log --cc --stat -n100 %s"
#define MAIN_CMD \
"git log --cc --stat -n100 %s"
#define MAIN_CMD \
- "git log --stat --pretty=raw %s"
+ "git log --
topo-order --
stat --pretty=raw %s"
#define HELP_CMD \
"man tig 2> /dev/null"
#define HELP_CMD \
"man tig 2> /dev/null"
@@
-1000,7
+1000,10
@@
end_update(struct view *view)
if (!view->pipe)
return;
set_nonblocking_input(FALSE);
if (!view->pipe)
return;
set_nonblocking_input(FALSE);
- pclose(view->pipe);
+ if (view->pipe == stdin)
+ fclose(view->pipe);
+ else
+ pclose(view->pipe);
view->pipe = NULL;
}
view->pipe = NULL;
}
@@
-1401,13
+1404,13
@@
pager_enter(struct view *view)
return TRUE;
}
return TRUE;
}
-
static struct view_ops pager_ops = {
pager_draw,
pager_read,
pager_enter,
};
static struct view_ops pager_ops = {
pager_draw,
pager_read,
pager_enter,
};
+
static bool
main_draw(struct view *view, unsigned int lineno)
{
static bool
main_draw(struct view *view, unsigned int lineno)
{