aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| * | | | ui-refs.c: show download links for all tags referring to commit objectsGravatar Lars Hjemli2008-12-02-3/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The snapshot function has only been linked to from the commit page while users often would want to download a certain release. With this patch, direct download links will now be printed for each tagged release on the repo summary page. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
| * | | | ui-shared: exploit snapshot dwimmery in cgit_print_snapshot_linksGravatar Lars Hjemli2008-12-02-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since we know that ui-snapshot.c is able to extract the revision from the filename, there's no longer necessary to specify the revision with a 'id' querystring argument. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
| * | | | ui-snapshot: improve extraction of revision from snapshot nameGravatar Lars Hjemli2008-12-02-43/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The modified get_ref_from_filename() supports the following snapshot formats: * $REV.$EXT * $REPO[-_]*v?$REV.$EXT This implies that the following urls will retrieve the expected revision: * http://hjemli.net/git/cgit/snapshot/v0.8.1.tar.gz * http://hjemli.net/git/cgit/snapshot/0.8.1.tar.gz * http://hjemli.net/git/cgit/snapshot/cgit-0.8.1.tar.gz * http://hjemli.net/git/cgit/snapshot/cgit-140012d7a8.tar.gz Signed-off-by: Lars Hjemli <hjemli@gmail.com>
| * | | | Set prefix in snapshots when using dwimmeryGravatar Natanael Copa2008-11-30-6/+14
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch sets the directory prefix in archives to be the filename, excluding the suffix (.tar.gz, .tar.bz2 etc). The patch also removes the prefix parameter in cgit_print_snapshot() as the prefix might differ. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* | | | Merge branch 'stable'Gravatar Lars Hjemli2008-12-06-8/+46
|\ \ \ \ | |/ / / |/| / / | |/ /
| * | Merge branch 'rj/buildtweaks' into stableGravatar Lars Hjemli2008-12-06-6/+31
| |\ \
| | * | parsing.c: enable builds with NO_ICONV definedGravatar Lars Hjemli2008-12-06-0/+4
| | | | | | | | | | | | | | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com>
| | * | ui-repolist: avoid build warning for strcasestr(3)Gravatar Lars Hjemli2008-12-06-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The non-standard function strcasestr is only defined if _GNU_SOURCE has also been defined. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
| | * | Makefile: allow cgit.conf to override platform-specific tweaksGravatar Lars Hjemli2008-12-06-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | If the makefile doesn't automatically define the correct build variables it is nice to be able to define them explicitly. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
| | * | Extra cygwin-specific changesGravatar Ramsay Jones2008-12-04-6/+23
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
| * | | ui-log: try to disambiguate ref namesGravatar Lars Hjemli2008-12-04-2/+15
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'h' querystring parameter in cgit is normally used to specify a branch (i.e. a ref below refs/heads/), but if a repository contains a tag with the same name as a branch the output from ui-log would use the tag as start-revision. This patch tries to fix the issue by checking if the specified ref is valid as a branch name; if so, the full refname is used in the call to setup_revisions(). Noticed-by: Takamori Yamaguchi <akschar@gmail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* | | Merge branch 'stable'Gravatar Lars Hjemli2008-11-14-1/+2
|\ \ \ | |/ /
| * | ui-repolist: handle empty agefilesGravatar Lars Hjemli2008-11-14-1/+2
| | | | | | | | | | | | | | | | | | | | | When the agefile was empty the old code would happily reuse the static buffer filled by a previous call to read_agefile(). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* | | Merge branch 'stable'Gravatar Lars Hjemli2008-11-07-2/+2
|\ \ \ | |/ /
| * | Use mode 0644 for non-executable filesGravatar Karl Chen2008-11-07-2/+2
| | | | | | | | | | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* | | Merge branch 'stable'Gravatar Lars Hjemli2008-11-07-6/+8
|\ \ \ | |/ / | | / | |/ |/|
| * Fix tests to work on Ubuntu (dash)Gravatar Ramsay Jones2008-11-07-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | The system shell (/bin/sh) on Ubuntu is dash, which aims to be a POSIX standard shell. In particular, dash does not implement any of the common extensions to the standard that, say, bash and ksh do. Replace some non-POSIX constructs in setup.sh with more portable and mundane code. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
| * Fix some warnings to allow -WerrorGravatar Ramsay Jones2008-11-07-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |