https://github.com/git/git
Revision 933a7353847538c4e84e343b8138058ec8683420 authored by Johannes Schindelin on 15 May 2020, 22:28:28 UTC, committed by Johannes Schindelin on 04 June 2020, 15:26:10 UTC
Even if we strongly discourage putting credentials into the URLs passed
via the command-line, there _is_ support for that, and users _do_ do
that.

Let's scrub them before writing them to the reflog.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent af6b65d
Raw File
Tip revision: 933a7353847538c4e84e343b8138058ec8683420 authored by Johannes Schindelin on 15 May 2020, 22:28:28 UTC
clone/fetch: anonymize URLs in the reflog
Tip revision: 933a735
reachable.h
#ifndef REACHEABLE_H
#define REACHEABLE_H

struct progress;
struct rev_info;

int add_unseen_recent_objects_to_traversal(struct rev_info *revs,
					   timestamp_t timestamp);
void mark_reachable_objects(struct rev_info *revs, int mark_reflog,
			    timestamp_t mark_recent, struct progress *);

#endif
back to top