author | Junio C Hamano <junkio@cox.net> | |
Wed, 23 May 2007 07:17:47 +0000 (00:17 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 23 May 2007 07:17:47 +0000 (00:17 -0700) |
* jn/lstree:
Add an option to git-ls-tree to display also the size of blob
Add an option to git-ls-tree to display also the size of blob
1 | 2 | |||
---|---|---|---|---|
builtin-ls-tree.c | patch | | diff1 | | diff2 | | blob | history |
diff --cc builtin-ls-tree.c
index 9a5977fb99c3c61522fee3678fb94b1815575c61,ccba2aa8e1a635f14650e5ee0d91298593c300bc..cb4be4fabb84bafd5518e81d2fd0ed6ee191641c
--- 1/builtin-ls-tree.c
--- 2/builtin-ls-tree.c
+++ b/builtin-ls-tree.c
{
int retval = 0;
const char *type = blob_type;
+ unsigned long size;
- if (S_ISDIRLNK(mode)) {
+ if (S_ISGITLINK(mode)) {
/*
* Maybe we want to have some recursive version here?
*