List for cgit developers and users
 help / color / mirror / Atom feed
* Snapshot: Customize filename and remove obligatory folder
@ 2015-11-09 12:11 alexander.nitsche
  2015-11-13 19:20 ` lfleischer
  0 siblings, 1 reply; 2+ messages in thread
From: alexander.nitsche @ 2015-11-09 12:11 UTC (permalink / raw)


It would be nice to be able to

a) customize the automatically generated snapshot filename. In general
it is {repository_name}-{branch}.zip. I - for integrity reasons - need
to be able to say that the filename should be {filename_xy}.zip without
the branch and a different name than the repo name. In my particular
case this is for constraints of the CMS system Typo3.

b) remove the obligatory parent folder from the snapshot: e.g. if the
tree structure of the git project "my_typo3_extension" is
---
/classes/
/resources/
/configuration/
ext_emconf.php
ext_tables.php
..
---
then the snapshot zip file looks like
---
/my_typo3_extension
  /classes/
  /resources/
  /configuration/
  ext_emconf.php
  ext_tables.php
  ..
---
but i need the snapshot to be without the parent folder
"my_typo3_extension" - for Typo3 constraints again.

Is there currently a way to do these customizations in cgit?

Thanks,
Alex
-------------- next part --------------


**************************************************
Die e-pixler academy ist er?ffnet.
Wissen aus der Praxis aufbereitet f?r die Praxis. Das ist unser Konzept.
Mehr erfahren und anmelden unter academy.e-pixler.de!
**************************************************


... Alexander Nitsche
     Webentwicklung / Programmierung

......................................................

e-pixler NEW MEDIA GmbH

... Eldenaer Stra?e 35 Haus I
     10247 Berlin


... Telefon: +49 30 220 563 040
     Fax: +49 30 220 563 019

... Internet: www.e-pixler.de
     E-Mail: alexander.nitsche at e-pixler.de

... Gesch?ftsf?hrer: Roman Rammelt, Stefan Otto
     Sitz der Gesellschaft: Berlin
     Amtsgericht Charlottenburg: HRB 135719 B
     UST-ID: DE278580804

......................................................


Unsere E-Mails sind mit OpenPGP verschl?sselt bzw. signiert.
Falls Sie diese Technik noch nicht nutzen, sehen Sie am unteren
Mailrand einen etwas kryptisch wirkenden Textblock.

......................................................



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Snapshot: Customize filename and remove obligatory folder
  2015-11-09 12:11 Snapshot: Customize filename and remove obligatory folder alexander.nitsche
@ 2015-11-13 19:20 ` lfleischer
  0 siblings, 0 replies; 2+ messages in thread
From: lfleischer @ 2015-11-13 19:20 UTC (permalink / raw)


On Mon, 09 Nov 2015 at 13:11:51, Alexander Nitsche - e-pixler NEW MEDIA GmbH wrote:
> It would be nice to be able to
> 
> a) customize the automatically generated snapshot filename. In general
> it is {repository_name}-{branch}.zip. I - for integrity reasons - need
> to be able to say that the filename should be {filename_xy}.zip without
> the branch and a different name than the repo name. In my particular
> case this is for constraints of the CMS system Typo3.
> [...]

You should be able to achieve this by telling your web server to
redirect the URI to the path that cgit uses.

> b) remove the obligatory parent folder from the snapshot: e.g. if the
> tree structure of the git project "my_typo3_extension" is
> ---
> /classes/
> /resources/
> /configuration/
> ext_emconf.php
> ext_tables.php
> ..
> ---
> then the snapshot zip file looks like
> ---
> /my_typo3_extension
>   /classes/
>   /resources/
>   /configuration/
>   ext_emconf.php
>   ext_tables.php
>   ..
> ---
> but i need the snapshot to be without the parent folder
> "my_typo3_extension" - for Typo3 constraints again.
> [...]

I don't think this is currently possible but patching cgit to support
that should be fairly easy. Have a look at the prefix variable/parameter
in ui-snapshot.c.

Regards,
Lukas


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-13 19:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-09 12:11 Snapshot: Customize filename and remove obligatory folder alexander.nitsche
2015-11-13 19:20 ` lfleischer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).