]> git.cameronkatri.com Git - cgit.git/log
cgit.git
17 years agoMerge branch 'lh/testsuite'
Lars Hjemli [Sun, 11 Nov 2007 12:17:13 +0000 (13:17 +0100)]
Merge branch 'lh/testsuite'

* lh/testsuite:
  Set commit date on snapshot contents
  Fix html error detected by test-suite
  Create initial testsuite

17 years agoSet commit date on snapshot contents
Lars Hjemli [Sun, 11 Nov 2007 12:14:15 +0000 (13:14 +0100)]
Set commit date on snapshot contents

The testsuite revealed that cgit snapshots don't set any useful timestamp on
the files contained in the snapshot.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoFix html error detected by test-suite
Lars Hjemli [Sun, 11 Nov 2007 12:04:28 +0000 (13:04 +0100)]
Fix html error detected by test-suite

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoCreate initial testsuite
Lars Hjemli [Sat, 10 Nov 2007 23:40:58 +0000 (00:40 +0100)]
Create initial testsuite

This creates a simple testsuite, heavily inspired by the testsuite in git.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoMerge branch 'stable'
Lars Hjemli [Fri, 9 Nov 2007 12:52:48 +0000 (13:52 +0100)]
Merge branch 'stable'

* stable:
  CGIT 0.7.1
  Makefile install: include cgit.png, do not empty cache

Conflicts:

Makefile

17 years agoCGIT 0.7.1 v0.7.1
Lars Hjemli [Fri, 9 Nov 2007 12:51:00 +0000 (13:51 +0100)]
CGIT 0.7.1

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoMakefile install: include cgit.png, do not empty cache
Lars Hjemli [Fri, 9 Nov 2007 12:47:58 +0000 (13:47 +0100)]
Makefile install: include cgit.png, do not empty cache

The cache-cleaning is potentially dangerous, so lets move it away from the
install target. A special emptycache target can be used to run the rm -rf.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoMinor css tweaks
Lars Hjemli [Fri, 9 Nov 2007 12:19:56 +0000 (13:19 +0100)]
Minor css tweaks

Don't specify border and background color for input controls, reduce font-
size of heading in sidebar.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoMerge branch 'stable'
Lars Hjemli [Thu, 8 Nov 2007 11:22:39 +0000 (12:22 +0100)]
Merge branch 'stable'

* stable:
  Support "/" as virtual-root

17 years agoSupport "/" as virtual-root
Lars Hjemli [Thu, 8 Nov 2007 11:20:05 +0000 (12:20 +0100)]
Support "/" as virtual-root

When the virtual-root was a single "/", it would be normalized to NULL due
to removal of trailing slashes, which in turn would fool us to belive that
we shouldn't generate virtual urls.

This makes the "/" normalize to "", effectively allowing virtual urls like
http://example.com/projectname to be generated without specifying the
full domain name as the virtual root.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoMakefile: link with libiconv if NEEDS_LIBICONV is defined
Lars Hjemli [Tue, 6 Nov 2007 08:35:07 +0000 (09:35 +0100)]
Makefile: link with libiconv if NEEDS_LIBICONV is defined

This seems to be needed to compile on cygwin.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoMerge branch 'iconv-rebased' of http://x2a.org/pub/git/cgit
Lars Hjemli [Mon, 5 Nov 2007 23:38:18 +0000 (00:38 +0100)]
Merge branch 'iconv-rebased' of http://x2a.org/pub/git/cgit

* 'iconv-rebased' of http://x2a.org/pub/git/cgit:
  Use utf8::reencode_string from git
  Convert subject and message with iconv_msg.
  Add iconv_msg function.
  Set msg_encoding according to the header.
  Add commit->msg_encoding, allocate msg dynamicly.

17 years agoShow lines changed as -n/+m in shortlogs
Lars Hjemli [Mon, 5 Nov 2007 23:35:12 +0000 (00:35 +0100)]
Show lines changed as -n/+m in shortlogs

This is way more informative than the total number of changed lines.

Suggested-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoUse utf8::reencode_string from git
Lars Hjemli [Mon, 5 Nov 2007 21:27:43 +0000 (22:27 +0100)]
Use utf8::reencode_string from git

This replaces the iconv-support in cgit with similar functions already
existing in git.

Signed-off-by: Lars Hjemli <hjemli@gmai.com>
17 years agoConvert subject and message with iconv_msg.
Jonathan Bastien-Filiatrault [Fri, 26 Oct 2007 22:13:41 +0000 (18:13 -0400)]
Convert subject and message with iconv_msg.

17 years agoAdd iconv_msg function.
Jonathan Bastien-Filiatrault [Fri, 26 Oct 2007 22:11:26 +0000 (18:11 -0400)]
Add iconv_msg function.

17 years agoSet msg_encoding according to the header.
Jonathan Bastien-Filiatrault [Fri, 26 Oct 2007 22:10:26 +0000 (18:10 -0400)]
Set msg_encoding according to the header.

17 years agoAdd commit->msg_encoding, allocate msg dynamicly.
Jonathan Bastien-Filiatrault [Fri, 26 Oct 2007 22:09:06 +0000 (18:09 -0400)]
Add commit->msg_encoding, allocate msg dynamicly.

17 years agoDon't show the the branch selector button if javascript is enabled
Lars Hjemli [Sat, 3 Nov 2007 13:17:58 +0000 (14:17 +0100)]
Don't show the the branch selector button if javascript is enabled

Suggested-by: Olivier Ramonat <olivier@ramonat.fr>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoDo not require javascript-enabled clients
Lars Hjemli [Sat, 3 Nov 2007 13:05:12 +0000 (14:05 +0100)]
Do not require javascript-enabled clients

A simple submit-button is all that's required to make the branch selector
drop-down work on any client, so lets add one.

Noticed-by: Olivier Ramonat <olivier@ramonat.fr>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoCGIT 0.7 v0.7
Lars Hjemli [Sat, 3 Nov 2007 10:35:55 +0000 (11:35 +0100)]
CGIT 0.7

17 years agoUse GIT-1.5.3.5
Lars Hjemli [Sat, 3 Nov 2007 10:33:54 +0000 (11:33 +0100)]
Use GIT-1.5.3.5

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoDon't include current SHA1 in 'log' menu-item
Lars Hjemli [Sat, 3 Nov 2007 10:33:28 +0000 (11:33 +0100)]
Don't include current SHA1 in 'log' menu-item

This ensures that the menu-item always prints the log for the active branch.
Predictability is good.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoDon't include current path in menu links
Lars Hjemli [Sat, 3 Nov 2007 10:23:47 +0000 (11:23 +0100)]
Don't include current path in menu links

The menu-links are a lot more predictable this way.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoFix search form action/hidden fields
Lars Hjemli [Sat, 3 Nov 2007 10:15:56 +0000 (11:15 +0100)]
Fix search form action/hidden fields

The search form didn't properly honor the current path, so this commit
fixes cgit_fileurl() and add_hidden_formfields() to make the issue go
away.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoAdd search parameters to cgit_log_link
Lars Hjemli [Sat, 3 Nov 2007 09:42:37 +0000 (10:42 +0100)]
Add search parameters to cgit_log_link

This makes the [prev] and [next] links work correctly on search results.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoFix typo in css
Shunichi Fuji [Sat, 3 Nov 2007 08:36:09 +0000 (09:36 +0100)]
Fix typo in css

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoChange the cgit layout
Lars Hjemli [Tue, 30 Oct 2007 09:47:38 +0000 (10:47 +0100)]
Change the cgit layout

This modifies and hopefully improves the layout of all cgit pages:

  * Remove the header from all pages and replace it with a sidebar;
    most pages have sufficient width but many needs more height.

  * Add a dropdown-box to switch between branches, using a one-liner
    javascript to reload the current page in context of the selected branch.

  * Include refs found below refs/archives in the sidebar, appearing as a
    set of menuitems below a 'download' heading.

  * Include the brand new cgit logo

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoAdd config param 'index-info'
Lars Hjemli [Tue, 30 Oct 2007 09:39:59 +0000 (10:39 +0100)]
Add config param 'index-info'

This parameter will be used to include a html file in the upcoming sidebar
on the index page.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoTeach cgit_object_link() about tag objects
Lars Hjemli [Sun, 28 Oct 2007 14:40:47 +0000 (15:40 +0100)]
Teach cgit_object_link() about tag objects

This makes random tag links more helpfull, e.g. when a branch head references
a tag object, link to the tag page.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoMake print_branch() handle refs not pointing at commits
Lars Hjemli [Sun, 28 Oct 2007 14:36:18 +0000 (15:36 +0100)]
Make print_branch() handle refs not pointing at commits

The master branch of stable/linux-2.6.20 currently references a tag
object, which makes print_branch() die with a segfault. This teaches
print_branch() to handle such cases more gracefully.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoTeach log search about --grep, --author and --committer
Lars Hjemli [Sun, 28 Oct 2007 14:23:00 +0000 (15:23 +0100)]
Teach log search about --grep, --author and --committer

This makes the log searching more explicit, using a dropdown box to specify
the commit field to match against.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoAdd html_option() function
Lars Hjemli [Sun, 28 Oct 2007 11:08:45 +0000 (12:08 +0100)]
Add html_option() function

This is a generic function used to output html "option" tags.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoMerge branch 'stable'
Lars Hjemli [Sat, 27 Oct 2007 11:55:44 +0000 (13:55 +0200)]
Merge branch 'stable'

* stable:
  cgit_parse_commit(): Add missing call to xstrdup()

17 years agocgit_parse_commit(): Add missing call to xstrdup()
Lars Hjemli [Sat, 27 Oct 2007 11:50:18 +0000 (13:50 +0200)]
cgit_parse_commit(): Add missing call to xstrdup()

It's rather silly to point into random memory-locations. Also, remove a
call to strdup() used on a literal char *.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoCleanup code introduced by the filter-refs topic
Lars Hjemli [Sat, 27 Oct 2007 11:34:17 +0000 (13:34 +0200)]
Cleanup code introduced by the filter-refs topic

The functions used to print branches and tags were only half-done and
somewhat confused. Fix it.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoMerge branch 'filter-refs'
Lars Hjemli [Sat, 27 Oct 2007 08:55:10 +0000 (10:55 +0200)]
Merge branch 'filter-refs'

* filter-refs:
  Add links to the new refs page from summary page
  Add support for refs view
  Make cgit_print_branches()/cgit_print_tags() external
  Add descriptions of summary-branches and summary-tags to cgitrc
  Add support for config param summary-branches
  Move logic for age comparision from cmp_tag_age into cmp_age()
  Add support for config param summary-tags
  Sort tags by age
  Use reflist to print tag info
  Use reflist to print branch info
  Add functions and types for ref lists

17 years agoAdd links to the new refs page from summary page
Lars Hjemli [Sat, 27 Oct 2007 08:47:44 +0000 (10:47 +0200)]
Add links to the new refs page from summary page

If either branches or tags are filtered on the summary page, add a link to
refs/heads and/or refs/tags right below the last branch/tag.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoAdd support for refs view
Lars Hjemli [Sat, 27 Oct 2007 08:36:53 +0000 (10:36 +0200)]
Add support for refs view

This enables the new urls $repo/refs, $repo/refs/heads and $repo/refs/tags,
which can be used to print _all_ branches and/or tags.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoMake cgit_print_branches()/cgit_print_tags() external
Lars Hjemli [Sat, 27 Oct 2007 08:25:40 +0000 (10:25 +0200)]
Make cgit_print_branches()/cgit_print_tags() external

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoAdd descriptions of summary-branches and summary-tags to cgitrc
Lars Hjemli [Sat, 27 Oct 2007 08:15:54 +0000 (10:15 +0200)]
Add descriptions of summary-branches and summary-tags to cgitrc

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoAdd support for config param summary-branches
Lars Hjemli [Sat, 27 Oct 2007 08:13:42 +0000 (10:13 +0200)]
Add support for config param summary-branches

This parameter can be used to specify max number of branches to show
on the summary page (if not all branches will be displayed, the "most
idle" branches are the ones to be pruned). The default value for this
parameter is 0, which disables the pruning.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoMove logic for age comparision from cmp_tag_age into cmp_age()
Lars Hjemli [Sat, 27 Oct 2007 08:06:03 +0000 (10:06 +0200)]
Move logic for age comparision from cmp_tag_age into cmp_age()

Simple refactoring to enable later filtering of branches based on age.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoAdd support for config param summary-tags
Lars Hjemli [Thu, 25 Oct 2007 08:40:16 +0000 (10:40 +0200)]
Add support for config param summary-tags

This parameter can be used to specify max number of tags to show on
the summary page. If not specified, all tags are printed.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoSort tags by age
Lars Hjemli [Thu, 25 Oct 2007 18:33:04 +0000 (20:33 +0200)]
Sort tags by age

This adds a function to compare timestamps and then uses it as callback
for qsort() before printing out tags.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoUse reflist to print tag info
Lars Hjemli [Thu, 25 Oct 2007 08:28:15 +0000 (10:28 +0200)]
Use reflist to print tag info

This updates ui-summary.c to use a reflist instead of for_each_tag_ref(),
as a step towards more flexible tag handling (filtering/sorting).

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoUse reflist to print branch info
Lars Hjemli [Thu, 25 Oct 2007 08:13:25 +0000 (10:13 +0200)]
Use reflist to print branch info

This updates ui-summary.c to use a reflist instead of for_each_branch_ref(),
as a step towards more flexible branch handling (filtering/sorting).

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoAdd functions and types for ref lists
Lars Hjemli [Thu, 25 Oct 2007 07:30:06 +0000 (09:30 +0200)]
Add functions and types for ref lists

This adds two structs, refinfo and reflist, and functions for building
a list of refs.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoMerge branch 'stable'
Lars Hjemli [Sat, 27 Oct 2007 07:15:41 +0000 (09:15 +0200)]
Merge branch 'stable'

* stable:
  Skip unknown header fields when parsing tags and commits

17 years agoSkip unknown header fields when parsing tags and commits
Lars Hjemli [Wed, 24 Oct 2007 19:14:44 +0000 (21:14 +0200)]
Skip unknown header fields when parsing tags and commits

Both the commit- and tagparser failed to handle unexpected header fields.
This adds futureproofing by simply skipping any header we don't know/care
about.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoMerge branch 'stable'
Lars Hjemli [Fri, 5 Oct 2007 14:20:13 +0000 (16:20 +0200)]
Merge branch 'stable'

* stable:
  correct typo in CSS

17 years agocorrect typo in CSS
Michael Krelin [Thu, 4 Oct 2007 22:21:30 +0000 (00:21 +0200)]
correct typo in CSS

17 years agoMerge branch 'stable'
Lars Hjemli [Mon, 1 Oct 2007 10:51:04 +0000 (12:51 +0200)]
Merge branch 'stable'

* stable:
  Use git-1.5.3.3

17 years agoUse git-1.5.3.3
Lars Hjemli [Mon, 1 Oct 2007 10:50:07 +0000 (12:50 +0200)]
Use git-1.5.3.3

17 years agocgit.css: make diff headers more visible
Lars Hjemli [Mon, 1 Oct 2007 10:41:29 +0000 (12:41 +0200)]
cgit.css: make diff headers more visible

This modifies the background color of diff headers to make them easier to
spot.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoui-diff: add links to pre- and postversion of blobs
Lars Hjemli [Mon, 1 Oct 2007 10:30:29 +0000 (12:30 +0200)]
ui-diff: add links to pre- and postversion of blobs

Each diff header now links to the old and new version of each file

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agogen-version.sh: don't sed the output from git describe
Lars Hjemli [Mon, 1 Oct 2007 10:01:51 +0000 (12:01 +0200)]
gen-version.sh: don't sed the output from git describe

Replacing '-' with '.' makes the version name slightly confusing, so lets
stick with the unmodified output of git describe.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agocss: remove the annoying tr:hover rule for diffstat
Lars Hjemli [Mon, 1 Oct 2007 10:09:07 +0000 (12:09 +0200)]
css: remove the annoying tr:hover rule for diffstat

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoui-commit.c: link to diff instead of tree from diffstat
Lars Hjemli [Mon, 1 Oct 2007 09:54:01 +0000 (11:54 +0200)]
ui-commit.c: link to diff instead of tree from diffstat

This makes each entry in the diffstat link to a path-restricted diff.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoAdd prefix parameter to cgit_print_diff()
Lars Hjemli [Mon, 1 Oct 2007 09:46:38 +0000 (11:46 +0200)]
Add prefix parameter to cgit_print_diff()

This allows a diff to be restricted to the path prefix specified in the url.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoAdd prefix parameter to cgit_diff_tree()
Lars Hjemli [Mon, 1 Oct 2007 09:42:19 +0000 (11:42 +0200)]
Add prefix parameter to cgit_diff_tree()

This paramter can be used to restrict a diff to the specified path prefix.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoAdd support for a renamelimit option in cgitrc
Lars Hjemli [Mon, 24 Sep 2007 21:52:30 +0000 (23:52 +0200)]
Add support for a renamelimit option in cgitrc

This option can be used to override the default rename-limit in git.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agocgit v0.6.3 v0.6.3
Lars Hjemli [Wed, 19 Sep 2007 23:04:54 +0000 (01:04 +0200)]
cgit v0.6.3

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoUpgrade to GIT 1.5.3.2
Lars Hjemli [Wed, 19 Sep 2007 23:03:25 +0000 (01:03 +0200)]
Upgrade to GIT 1.5.3.2

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoUse trim_end() to remove trailing slashes
Lars Hjemli [Wed, 19 Sep 2007 22:56:53 +0000 (00:56 +0200)]
Use trim_end() to remove trailing slashes

All urls and paths read from cgitrc needs to be 'normalized', i.e. get any
trailing slashes removed, and the trim_end() function works out nice for
this purpose.

Removing the trailing slashes also happens to fix the case where the virtual
root should be a single slash; that case used to require specifying the full
hostname (including the http:// prefix), but now it can simply be specified
as /.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoRemove a few compiler warnings
Lars Hjemli [Wed, 19 Sep 2007 22:21:47 +0000 (00:21 +0200)]
Remove a few compiler warnings

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoAdd cgit.conf to .gitignore, remove *~
Lars Hjemli [Wed, 19 Sep 2007 22:11:03 +0000 (00:11 +0200)]
Add cgit.conf to .gitignore, remove *~

Not having cgit.conf in .gitignore is a bug, while having *~ is a personal
preference.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoui-tree: show last line of blob
Lars Hjemli [Wed, 19 Sep 2007 22:00:06 +0000 (00:00 +0200)]
ui-tree: show last line of blob

The last line in a blob was never printed by ui-tree::print_object(), which
was particularly annoying when the blob missed a final newline. This fixes
the issue.

Noticed-by: <mkraai@beckman.com>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoui-tree: specify parameter position for all htmlf formats
Lars Hjemli [Wed, 19 Sep 2007 21:46:59 +0000 (23:46 +0200)]
ui-tree: specify parameter position for all htmlf formats

The GNU C library manual tells us that behavior is undefined if only
some formats has a specification for the parameter position.

Noticed-by: <mkraai@beckman.com>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agofixed typo in cgitrc
Michael Krelin [Fri, 14 Sep 2007 17:28:09 +0000 (19:28 +0200)]
fixed typo in cgitrc

Signed-off-by: Michael Krelin <hacker@klever.net>
17 years agoImprove the sample cgitrc file
Chris Pickel [Sat, 8 Sep 2007 23:37:43 +0000 (19:37 -0400)]
Improve the sample cgitrc file

Added and documented missing cgitrc parameters, improved documentation
for virtual-root, added examples for repositories with a working
directory.

[lh:sligthly modified/extended]

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agocgit v0.6.2 v0.6.2
Lars Hjemli [Sat, 8 Sep 2007 17:10:37 +0000 (19:10 +0200)]
cgit v0.6.2

17 years agoRevert part of "Makefile: add support for DESTDIR"
Lars Hjemli [Sat, 8 Sep 2007 16:42:55 +0000 (18:42 +0200)]
Revert part of "Makefile: add support for DESTDIR"

This removes my editing on the patch received by Chris Pickel, as I didn't
understand the purpose of DESTDIR.

Noticed-by: Chris Pickel <sfiera@macports.org>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoRevert "Makefile: add missing references to DESTDIR"
Lars Hjemli [Sat, 8 Sep 2007 16:38:10 +0000 (18:38 +0200)]
Revert "Makefile: add missing references to DESTDIR"

This reverts commit fa31c5ed4839575c3ef3f6f0823fc2b4af47dbfd, as I
totally misunderstood the purpose of DESTDIR.

Noticed-by: Chris Pickel <sfiera@macports.org>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agocgit v0.6.1 v0.6.1
Lars Hjemli [Sat, 8 Sep 2007 13:53:02 +0000 (15:53 +0200)]
cgit v0.6.1

17 years agoMakefile: add missing references to DESTDIR
Lars Hjemli [Sat, 8 Sep 2007 09:59:04 +0000 (11:59 +0200)]
Makefile: add missing references to DESTDIR

When cgit is built it needs to get CGIT_CONFIG and CGIT_CACHE_ROOT prefix
with DESTDIR.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoMake cgit honor CACHE_ROOT as defined in Makefile
Chris Pickel [Sat, 8 Sep 2007 09:39:44 +0000 (11:39 +0200)]
Make cgit honor CACHE_ROOT as defined in Makefile

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoMakefile: add support for DESTDIR
Chris Pickel [Sat, 8 Sep 2007 09:34:11 +0000 (11:34 +0200)]
Makefile: add support for DESTDIR

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agocgit v0.6 v0.6
Lars Hjemli [Tue, 4 Sep 2007 09:54:37 +0000 (11:54 +0200)]
cgit v0.6

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoUpdate README
Lars Hjemli [Tue, 4 Sep 2007 09:49:40 +0000 (11:49 +0200)]
Update README

Add new build instructions, extend the "Missing features" section and add
a note about patches/email address of the author.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoSet xdemitconf_t.findfunc=NULL
Lars Hjemli [Tue, 4 Sep 2007 09:04:47 +0000 (11:04 +0200)]
Set xdemitconf_t.findfunc=NULL

This function-pointer was introduced in git v1.5.3-rc0-42-gf258475. It
needs to have a value, and setting it to NULL triggers the old behaviour
for selecting hunk headers.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoMerge branch 'jo/dirlink'
Lars Hjemli [Mon, 3 Sep 2007 21:00:06 +0000 (23:00 +0200)]
Merge branch 'jo/dirlink'

* jo/dirlink:
  Rename dirlink to gitlink.

Conflicts:

ui-tree.c

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoUse git-1.5.3 as submodule
Lars Hjemli [Mon, 3 Sep 2007 20:58:02 +0000 (22:58 +0200)]
Use git-1.5.3 as submodule

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoDelete submodules.sh and prepare for using git-submodule
Lars Hjemli [Mon, 3 Sep 2007 20:54:51 +0000 (22:54 +0200)]
Delete submodules.sh and prepare for using git-submodule

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoMakefile: add target "get-git"
Lars Hjemli [Mon, 3 Sep 2007 20:42:54 +0000 (22:42 +0200)]
Makefile: add target "get-git"

The new target downloads a suitable git.git tarball from kernel.org and
unpacks it in the git directory.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoRewrite the makefile + gen-version.sh
Lars Hjemli [Mon, 3 Sep 2007 19:52:14 +0000 (21:52 +0200)]
Rewrite the makefile + gen-version.sh

The old files were simply broken, hopefully the new ones will work out
somewhat better.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoui-snapshot: whitespace/formatting cleanup
Lars Hjemli [Mon, 23 Jul 2007 20:51:45 +0000 (22:51 +0200)]
ui-snapshot: whitespace/formatting cleanup

Introduce a #define for number of snapshot archive entries, move all decls
to function entrypoint, remove some trailing whitespace and reformat a few
lines.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoMake ui-tag.c generate valid xhtml
Lars Hjemli [Sun, 22 Jul 2007 23:42:49 +0000 (01:42 +0200)]
Make ui-tag.c generate valid xhtml

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoAdd support for line number in url fragment
Lars Hjemli [Sun, 22 Jul 2007 22:46:15 +0000 (00:46 +0200)]
Add support for line number in url fragment

With this change, urls like http://hjemli.net/git/cgit/tree/ui-tree.c#43 can
be used to jump directly to the specified line number.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agocgit_print_snapshot_links: use url to specify snapshot name
Lars Hjemli [Sun, 22 Jul 2007 22:11:15 +0000 (00:11 +0200)]
cgit_print_snapshot_links: use url to specify snapshot name

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoMerge branch 'master' of git://git.klever.net/patchwork/cgit
Lars Hjemli [Sun, 22 Jul 2007 21:57:48 +0000 (23:57 +0200)]
Merge branch 'master' of git://git.klever.net/patchwork/cgit

* 'master' of git://git.klever.net/patchwork/cgit:
  link raw blob from tree file view
  fix: changed view link to blob in summary.
  allow selective enabling of snapshots
  shorten snapshot names to repo basename
  introduce cgit_repobasename
  added snapshot filename to the link
  add plain uncompressed tar snapshort format
  introduced .tar.bz2 snapshots
  compress .tar.gz using gzip as a filter
  added a chk_non_negative check
  css: adjust vertical-align of commit info th cells
  add support for snapshot tarballs

Conflicts:

ui-summary.c

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoAdd ui-tag.c
Lars Hjemli [Sun, 22 Jul 2007 21:42:55 +0000 (23:42 +0200)]
Add ui-tag.c

This file implements the tag-command, i.e. printing of annotated tags.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agolink raw blob from tree file view
Michael Krelin [Sat, 21 Jul 2007 17:51:47 +0000 (19:51 +0200)]
link raw blob from tree file view

Signed-off-by: Michael Krelin <hacker@klever.net>
17 years agofix: changed view link to blob in summary.
Michael Krelin [Sat, 21 Jul 2007 17:35:39 +0000 (19:35 +0200)]
fix: changed view link to blob in summary.

 might not be the best way, but should suffice for now that view command isn't
 handled in any way

Signed-off-by: Michael Krelin <hacker@klever.net>
17 years agoallow selective enabling of snapshots
Michael Krelin [Sat, 21 Jul 2007 16:00:53 +0000 (18:00 +0200)]
allow selective enabling of snapshots

 snapshot configuration parameter now can be a
 space/slash/comma/colon/semicolon/pipe-separated list of snaphot suffixes as
 listed in ui-snapshot.c

Signed-off-by: Michael Krelin <hacker@klever.net>
17 years agoshorten snapshot names to repo basename
Michael Krelin [Sat, 21 Jul 2007 13:29:55 +0000 (15:29 +0200)]
shorten snapshot names to repo basename

Signed-off-by: Michael Krelin <hacker@klever.net>
17 years agointroduce cgit_repobasename
Michael Krelin [Sat, 21 Jul 2007 13:24:07 +0000 (15:24 +0200)]
introduce cgit_repobasename

 that shortens reponame stripping any directories and .git suffixes, that is
 turning 'dir/repo.git/' or 'dir/repo/.git/' or alikes into mere 'repo'.

Signed-off-by: Michael Krelin <hacker@klever.net>
17 years agoadded snapshot filename to the link
Michael Krelin [Sat, 21 Jul 2007 11:13:40 +0000 (13:13 +0200)]
added snapshot filename to the link

 - changed cgit_pageurl into cgit_fileurl with the filename parameter
 - rewritten cgit_pageurl as a wrapper around cgit_fileurl

Signed-off-by: Michael Krelin <hacker@klever.net>
17 years agoadd plain uncompressed tar snapshort format
Michael Krelin [Sat, 21 Jul 2007 00:14:35 +0000 (02:14 +0200)]
add plain uncompressed tar snapshort format

time to make available snapshots selectable

Signed-off-by: Michael Krelin <hacker@klever.net>
17 years agointroduced .tar.bz2 snapshots
Michael Krelin [Sat, 21 Jul 2007 00:05:34 +0000 (02:05 +0200)]
introduced .tar.bz2 snapshots

 - reworked write_tar_gzip_archive to handle arbitrary filter as a
   write_compressed_tar_archive
 - reformatted whitespaces in the said function to adhere to common cgit
   standards
 - added wrappers around write_compressed_tar_archive for .tar.gz and .tar.bz2
 - added a hint for vim to use 8 characters shift width by default

Signed-off-by: Michael Krelin <hacker@klever.net>