From: Junio C Hamano Date: Fri, 21 May 2010 11:02:18 +0000 (-0700) Subject: Merge branch 'jc/maint-no-reflog-expire-unreach-for-head' X-Git-Tag: v1.7.2-rc0~122 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a660534e06147f8867d6c9b6c41025427a7b5c6c;p=git.git Merge branch 'jc/maint-no-reflog-expire-unreach-for-head' * jc/maint-no-reflog-expire-unreach-for-head: reflog --expire-unreachable: special case entries in "HEAD" reflog more war on "sleep" in tests Document gc..reflogexpire variables Conflicts: Documentation/config.txt --- a660534e06147f8867d6c9b6c41025427a7b5c6c diff --cc Documentation/config.txt index 39140bad4,4e7dab6ec..1e402e087 --- a/Documentation/config.txt +++ b/Documentation/config.txt @@@ -946,13 -885,19 +946,19 @@@ gc.pruneexpire: unreachable objects immediately. gc.reflogexpire:: + gc..reflogexpire:: - 'git-reflog expire' removes reflog entries older than + 'git reflog expire' removes reflog entries older than - this time; defaults to 90 days. + this time; defaults to 90 days. With "" (e.g. + "refs/stash") in the middle the setting applies only to + the refs that match the . gc.reflogexpireunreachable:: + gc..reflogexpireunreachable:: - 'git-reflog expire' removes reflog entries older than + 'git reflog expire' removes reflog entries older than this time and are not reachable from the current tip; - defaults to 30 days. + defaults to 30 days. With "" (e.g. "refs/stash") + in the middle, the setting applies only to the refs that + match the . gc.rerereresolved:: Records of conflicted merge you resolved earlier are diff --cc builtin/reflog.c index f73215686,000000000..ebf610e64 mode 100644,000000..100644 --- a/builtin/reflog.c +++ b/builtin/reflog.c @@@ -1,733 -1,0 +1,782 @@@ +#include "cache.h" +#include "builtin.h" +#include "commit.h" +#include "refs.h" +#include "dir.h" +#include "tree-walk.h" +#include "diff.h" +#include "revision.h" +#include "reachable.h" + +/* + * reflog expire + */ + +static const char reflog_expire_usage[] = +"git reflog expire [--verbose] [--dry-run] [--stale-fix] [--expire=