New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Two small 'git repack' fixes #1098
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -612,7 +612,7 @@ int cmd_repack(int argc, const char **argv, const char *prefix) | |
struct tempfile *refs_snapshot = NULL; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Ævar Arnfjörð Bjarmason wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Derrick Stolee wrote (reply to this):
|
||
int i, ext, ret; | ||
FILE *out; | ||
int show_progress = isatty(2); | ||
int show_progress; | ||
|
||
/* variables to be filled by option parsing */ | ||
int pack_everything = 0; | ||
|
@@ -693,7 +693,7 @@ int cmd_repack(int argc, const char **argv, const char *prefix) | |
write_bitmaps = 0; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Jeff King wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Derrick Stolee wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Jeff King wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Ævar Arnfjörð Bjarmason wrote (reply to this):
|
||
} | ||
if (pack_kept_objects < 0) | ||
pack_kept_objects = write_bitmaps > 0; | ||
pack_kept_objects = write_bitmaps > 0 && !write_midx; | ||
|
||
if (write_bitmaps && !(pack_everything & ALL_INTO_ONE) && !write_midx) | ||
die(_(incremental_bitmap_conflict_error)); | ||
|
@@ -725,6 +725,8 @@ int cmd_repack(int argc, const char **argv, const char *prefix) | |
|
||
prepare_pack_objects(&cmd, &po_args); | ||
|
||
show_progress = !po_args.quiet && isatty(2); | ||
|
||
strvec_push(&cmd.args, "--keep-true-parents"); | ||
if (!pack_kept_objects) | ||
strvec_push(&cmd.args, "--honor-pack-keep"); | ||
|
@@ -926,7 +928,7 @@ int cmd_repack(int argc, const char **argv, const char *prefix) | |
} | ||
strbuf_release(&buf); | ||
} | ||
if (!po_args.quiet && show_progress) | ||
if (show_progress) | ||
opts |= PRUNE_PACKED_VERBOSE; | ||
prune_packed_objects(opts); | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the Git mailing list, Jeff King wrote (reply to this):
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the Git mailing list, Derrick Stolee wrote (reply to this):
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the Git mailing list, Jeff King wrote (reply to this):
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the Git mailing list, Derrick Stolee wrote (reply to this):