File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ static void blob_fn(struct cgit_context *ctx)
51
51
52
52
static void commit_fn (struct cgit_context * ctx )
53
53
{
54
- cgit_print_commit (ctx -> qry .sha1 );
54
+ cgit_print_commit (ctx -> qry .sha1 , ctx -> qry . path );
55
55
}
56
56
57
57
static void diff_fn (struct cgit_context * ctx )
Original file line number Diff line number Diff line change 12
12
#include "ui-diff.h"
13
13
#include "ui-log.h"
14
14
15
- void cgit_print_commit (char * hex )
15
+ void cgit_print_commit (char * hex , const char * prefix )
16
16
{
17
17
struct commit * commit , * parent ;
18
18
struct commitinfo * info ;
@@ -117,7 +117,7 @@ void cgit_print_commit(char *hex)
117
117
tmp = sha1_to_hex (commit -> parents -> item -> object .sha1 );
118
118
else
119
119
tmp = NULL ;
120
- cgit_print_diff (ctx .qry .sha1 , tmp , NULL );
120
+ cgit_print_diff (ctx .qry .sha1 , tmp , prefix );
121
121
}
122
122
cgit_free_commitinfo (info );
123
123
}
Original file line number Diff line number Diff line change 1
1
#ifndef UI_COMMIT_H
2
2
#define UI_COMMIT_H
3
3
4
- extern void cgit_print_commit (char * hex );
4
+ extern void cgit_print_commit (char * hex , const char * prefix );
5
5
6
6
#endif /* UI_COMMIT_H */
You can’t perform that action at this time.
0 commit comments