summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ebbaf4f)
raw | patch | inline | side by side (parent: ebbaf4f)
author | Jonas Fonseca <fonseca@diku.dk> | |
Tue, 12 Sep 2006 00:45:36 +0000 (02:45 +0200) | ||
committer | Jonas Fonseca <fonseca@antimatter.localdomain> | |
Tue, 12 Sep 2006 00:45:36 +0000 (02:45 +0200) |
tig.c | patch | blob | history |
index 0a86490272750de255b7d99a530eba9d39fcf12c..a871cb0e2a6458dbaa93a3d4c6b2e3170f743a77 100644 (file)
--- a/tig.c
+++ b/tig.c
* Tree backend
*/
-/* Parse output from git ls-tree:
+/* Parse output from git-ls-tree(1):
*
* 100644 blob fb0e31ea6cc679b7379631188190e975f5789c26 Makefile
* 100644 blob 5304ca4260aaddaee6498f9630e7d471b8591ea6 README
tree_enter(struct view *view, struct line *line)
{
enum open_flags flags = display[0] == view ? OPEN_SPLIT : OPEN_DEFAULT;
- char *data = line->data;
enum request request;
switch (line->type) {
} else {
size_t pathlen = strlen(opt_path);
size_t origlen = pathlen;
+ char *data = line->data;
char *basename = data + SIZEOF_TREE_ATTR;
if (!string_format_from(opt_path, &pathlen, "%s/", basename)) {