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

Re: [PATCH] gitweb: change filename/directory name of snapshots

From
Jakub Narebski <jnareb@gmail.com>
Date
Jun 8, 2007, 11:46 UTC
Message-ID
<f4bf7g$kpe$1@sea.gmane.org>
In-Reply-To
<7v4pliltuv.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 17 quoted lines
> Matthias Lederhofer <matled@gmx.net> writes:
> 
>> /.git or .git is removed from the project name and the
>> basename of the remaining path is used as the beginning of
>> the filename and as the directory in the archive.
>>
>> The regexp will actually not strip off /.git or .git if there
>> wouldn't be anything left after removing it.
>>
>> Currently the full project name is used as directory in the
>> archive and the basename is used as filename.  For example a
>> repository named foo/bar/.git will have a archive named
>> .git-<version>.* and extract to foo/bar/.git.  With this patch
>> the file is named bar-<version>.* and extracts to bar.
> 
> Makes sense to me for "foo/bar/.git", but I am not sure if we
> would want to do this to "foo/bar.git".  Opinions?

I'd like to have snapshot called bar-<sha1>.tar.gz in first case, and bar.git-<sha1>.tar.gz (without stripping .git) in the second, but I wouldn't protest too much about having bar-<sha1>.tar.gz also in second case.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Junio C HamanoNext: Petr Baudis
Message 3 of 4 in “gitweb: change filename/directory name of snapshots”
  1. gitweb: change filename/directory name of snapshotsMatthias Lederhofer, Jun 7, 2007
  2. Junio C HamanoJun 8, 2007
  3. Jakub NarebskiJun 8, 2007
  4. Petr BaudisJun 8, 2007

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.