gitweb: append short hash ids to snapshot files
commitb411a7a6f62a0ea39644bc31bacf41861e5b731f
authorMark Rada <marada@uwaterloo.ca>
Sat, 26 Sep 2009 17:46:21 +0000 (26 13:46 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 29 Sep 2009 17:06:51 +0000 (29 10:06 -0700)
tree5168bb2a311dfb8b9403078d1539fe1f3b40a7a4
parentfdb0c36e903d13c184f9a465035c75565c5c072a
gitweb: append short hash ids to snapshot files

Teach gitweb how to produce nicer snapshot names by only using the
short hash id. If clients make requests using a tree-ish that is not a
partial or full SHA-1 hash, then the short hash will also be appended
to whatever they asked for.

This also includes tests cases for t9502-gitweb-standalone-parse-output.

Signed-off-by: Mark Rada <marada@uwaterloo.ca>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
gitweb/gitweb.perl
t/t9502-gitweb-standalone-parse-output.sh [new file with mode: 0644]