mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-17 20:04:05 +02:00
eeshow/: properly handle fake history record for uncommitted changes
This commit is contained in:
parent
2ef7eab861
commit
5a2324169e
@ -229,6 +229,8 @@ char *vcs_git_long_for_pango(struct hist *h)
|
|||||||
const git_signature *sig;
|
const git_signature *sig;
|
||||||
char *s;
|
char *s;
|
||||||
|
|
||||||
|
if (!h->commit)
|
||||||
|
return stralloc("Uncommitted changes");
|
||||||
if (git_object_short_id(&buf, (git_object *) h->commit))
|
if (git_object_short_id(&buf, (git_object *) h->commit))
|
||||||
goto fail;
|
goto fail;
|
||||||
commit_time = git_commit_time(h->commit);
|
commit_time = git_commit_time(h->commit);
|
||||||
|
@ -1148,7 +1148,7 @@ static const struct sheet *parse_files(struct gui_hist *hist,
|
|||||||
bool libs_cached = 0;
|
bool libs_cached = 0;
|
||||||
bool ok;
|
bool ok;
|
||||||
|
|
||||||
if (hist->vcs_hist)
|
if (hist->vcs_hist && hist->vcs_hist->commit)
|
||||||
rev = vcs_git_get_rev(hist->vcs_hist);
|
rev = vcs_git_get_rev(hist->vcs_hist);
|
||||||
|
|
||||||
sch_init(&hist->sch_ctx, recurse);
|
sch_init(&hist->sch_ctx, recurse);
|
||||||
|
Loading…
Reference in New Issue
Block a user