summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b86dcbe)
raw | patch | inline | side by side (parent: b86dcbe)
author | Jonas Fonseca <fonseca@diku.dk> | |
Tue, 24 Nov 2009 03:20:34 +0000 (22:20 -0500) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Tue, 24 Nov 2009 03:20:34 +0000 (22:20 -0500) |
tig.c | patch | blob | history |
index b20fb1bfa49bb4c9ac9b1bd24481b4df3dea5a8f..bd30997c00ede3035271484f5cb18326fe64c34c 100644 (file)
--- a/tig.c
+++ b/tig.c
};
static struct ref_list *get_ref_list(const char *id);
-static void foreach_ref(bool (*visitor)(void *data, struct ref *ref), void *data);
+static void foreach_ref(bool (*visitor)(void *data, const struct ref *ref), void *data);
static int load_refs(void);
enum format_flags {
struct branch {
const char *author; /* Author of the last commit. */
time_t time; /* Date of the last activity. */
- struct ref *ref; /* Name and commit ID information. */
+ const struct ref *ref; /* Name and commit ID information. */
};
static const enum sort_field branch_sort_fields[] = {
}
static bool
-branch_open_visitor(void *data, struct ref *ref)
+branch_open_visitor(void *data, const struct ref *ref)
{
struct view *view = data;
struct branch *branch;
}
static void
-foreach_ref(bool (*visitor)(void *data, struct ref *ref), void *data)
+foreach_ref(bool (*visitor)(void *data, const struct ref *ref), void *data)
{
size_t i;