do not show diff controls when only the commit diff stat is shown

Vial, Florent florent.vial at intel.com
Tue Sep 13 14:33:28 CEST 2011


Hi,

Another patch attached.

HTH,
Florent

---
ui-commit.c |    2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ui-commit.c b/ui-commit.c
index 237e26a..a0198f9 100644
--- a/ui-commit.c
+++ b/ui-commit.c
@@ -41,7 +41,7 @@ void cgit_print_commit(char *hex, const char *prefix)
                load_ref_decorations(DECORATE_FULL_REFS);

-              cgit_print_diff_ctrls();
+             if (show_full_diff) cgit_print_diff_ctrls();
               html("<table summary='commit info' class='commit-info'>\n");
               html("<tr><th>author</th><td>");
               html_txt(info->author);
--
1.7.0.4




More information about the CGit mailing list