https://github.com/git/git
Revision 70d19a436dfdc2375f7c80dac85bc08160f6a0f7 authored by Junio C Hamano on 04 June 2017, 01:21:01 UTC, committed by Junio C Hamano on 04 June 2017, 01:21:01 UTC
The codepath in "git am" that is used when running "git rebase"
leaked memory held for the log message of the commits being rebased.

* jk/am-leakfix:
  am: shorten ident_split variable name in get_commit_info()
  am: simplify allocations in get_commit_info()
  am: fix commit buffer leak in get_commit_info()
2 parent s 8a17b25 + 721f5f1
Raw File
Tip revision: 70d19a436dfdc2375f7c80dac85bc08160f6a0f7 authored by Junio C Hamano on 04 June 2017, 01:21:01 UTC
Merge branch 'jk/am-leakfix' into maint
Tip revision: 70d19a4
progress.h
#ifndef PROGRESS_H
#define PROGRESS_H

struct progress;

void display_throughput(struct progress *progress, off_t total);
int display_progress(struct progress *progress, unsigned n);
struct progress *start_progress(const char *title, unsigned total);
struct progress *start_progress_delay(const char *title, unsigned total,
				       unsigned percent_treshold, unsigned delay);
void stop_progress(struct progress **progress);
void stop_progress_msg(struct progress **progress, const char *msg);

#endif
back to top