git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/3] repack: rewrite the shell script in C

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 17, 2013, 18:17 UTC
Message-ID
<xmqqy56vxqhi.fsf@gitster.dls.corp.google.com>
In-Reply-To
<1379259202-5042-1-git-send-email-stefanbeller@googlemail.com>
Stefan Beller <stefanbeller@googlemail.com> writes:
Show 6 quoted lines
> +	struct option builtin_repack_options[] = {
> +		OPT_BIT('a', NULL, &pack_everything,
> +				N_("pack everything in a single pack"), ALL_INTO_ONE),
> +		OPT_BIT('A', NULL, &pack_everything,
> +				N_("same as -a, and turn unreachable objects loose"),
> +				   LOOSEN_UNREACHABLE),
Micronit.

With the current version of the code in cmd_repack() that uses the pack_everything variable this may not make a difference, but I think this should logically be "LOOSEN_UNREACHABLE | ALL_INTO_ONE" instead, and the code should check (pack_evertying & ALL_INTO_ONE) instead of checking "!pack_everything". You may want to add to this flag variable a new bit that does _not_ cause it to pack everything into one.

Previous: Junio C HamanoNext: Stefan Beller
Message 6 of 8 in “repack: rewrite the shell script in C”
  1. 1/3 repack: rewrite the shell script in CStefan Beller, Sep 15, 2013
  2. 2/3 repack: retain the return value of pack-objectsStefan Beller, Sep 15, 2013
  3. 3/3 repack: improve warnings about failure of renaming and removing filesStefan Beller, Sep 15, 2013
  4. Ramkumar RamachandraSep 15, 2013
  5. Junio C HamanoSep 17, 2013
  6. Junio C HamanoSep 17, 2013
  7. Stefan BellerSep 17, 2013
  8. Junio C HamanoSep 17, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.