Skip to content

Commit

Permalink
Fix parsing of reflog designator in timestamp format
Browse files Browse the repository at this point in the history
  • Loading branch information
koutcher committed Dec 4, 2024
1 parent 039abe7 commit 4364809
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions NEWS.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Bug fixes:
- Fix message upon edit from diffstat without patch.
- Fix missing dates in the refs view.
- Don't report an error when diff-highlight is killed intentionally.
- Fix parsing of reflog designator in timestamp format.

Improvements:

Expand Down
4 changes: 2 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,12 +387,12 @@ main_get_column_data(struct view *view, const struct line *line, struct view_col
static bool
main_add_reflog(struct view *view, struct main_state *state, char *reflog)
{
char *end = strchr(reflog, ' ');
char *end = strchr(reflog, '}');
int id_width;

if (!end)
return false;
*end = 0;
*++end = 0;

if (!realloc_reflogs(&state->reflog, state->reflogs, 1)
|| !(reflog = strdup(reflog)))
Expand Down

0 comments on commit 4364809

Please sign in to comment.