Branch: Tag:

2018-04-24

2018-04-24 10:50:31 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Improved error message.

Show the arguments given to the git binary in the
git failure message.

2018-04-24 10:49:12 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Support committing on a detached HEAD.

This fixes failures to amend commits during interactive rebase.

2018-04-12

2018-04-12 12:05:24 by Marcus Comstedt <marcus@mc.pp.se>

Handle pushing of orphan commits

2017-04-13

2017-04-13 10:21:44 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added support for tracking branches.

These are a class of branches that essentially behave as movable tags.

2016-12-07

2016-12-07 10:30:06 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Improved compatibility with *old* versions of Pike.

2016-12-07 10:25:35 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added access level ACCESS_GROUP.

This is to simplify detection of access to group-level tags and branches.

Allow ordinary group members to create group tags and branches.

Use symbolic names for all access_level checks.

2016-12-07 10:24:38 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Users should always have full permissions to their own group.

2016-12-07 10:21:24 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added some startup debug code.

This debug is enabled by starting githelper.pike with /bin/sh
(eg via switching the #! directive at the start of the file
to #!/bin/sh).

2016-11-30

2016-11-30 17:25:48 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Preprocessor directives should not be indented.

2016-11-30 17:14:46 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Allow .gitattributes in subdirectories.

2016-11-30 17:08:49 by Henrik Grubbström (Grubba) <grubba@grubba.org>

pre-receive: Don't fail group access check silently.

2016-02-07

2016-02-07 00:35:33 by Chris Angelico <rosuav@gmail.com>

Support both 8.1 and 7.8

2014-10-24

2014-10-24 12:54:50 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed indentation.

2014-08-28

2014-08-28 13:30:34 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed warnings about static.

The keyword "static" has been marked deprecated in Pike 8.0.

Thanks to Chris Angelico <rosuav@gmail.com> for the report.

2013-08-09

2013-08-09 10:15:27 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Add support for group-based access control.

This patch adds support for a group file ".git/info/group"
containing a mapping from group names to member users.

Note that the first listed member of a group gets full
access and the following basic access. Users not listed
get no access. If multiple users need full access, this
can be achieved by having multiple entries for the group.

Also cleans up the access level handling code somewhat
by introducing an enum AccessLevel.

2013-01-23

2013-01-23 20:47:08 by Marcus Comstedt <marcus@mc.pp.se>

Removed broken use of Stdio.is_file(path)

Stdio.is_file(path) should not be used to check if some path is a
file, because it is not whether path is a file or not in the working
tree which is relevant, but rather whether or not it is one in the
commit/stage being investigated. In fact, there might not even be
a working tree since this test is also run on the server.

Instead, use get_file(path,2), which returns the empty string for
directories, which should have the intended effect of not complaining
about foreign_ident being removed from directories.

2013-01-23 20:18:30 by Marcus Comstedt <marcus@mc.pp.se>

Add a kluge to handle pushes to branches with exactly one commit

When pushing to a branch, githelper checks if the old head of the
branch is reachable from the new head following only first-parents.
As an optimization, no more first-parents are followed once the old
head has been reached, which is to say old^ and its ancestors are
excluded from the rev-list. However, if old does not have a parent,
then rev-list fails to interpret old^. So as a kluge, detect this
case and disable the optimization as needed...

2011-04-25

2011-04-25 16:55:30 by Martin Stjernholm <mast@lysator.liu.se>

Allow removal of bogus foreign_ident entries for nonfiles.

There is one such mistake for /lib/modules/MIME.pmod in
.gitattributes on the main pike branches.

2011-04-25 16:38:10 by Martin Stjernholm <mast@lysator.liu.se>

Fixed recognition of unterminated idents.

2011-03-19

2011-03-19 23:11:58 by Marcus Comstedt <marcus@mc.pp.se>

Implement access control namespaces

You now get access to tags and branches bases on their name:

scratch/*
${GIT_USER}/*

Full access (create, delete and rebase/move all allowed, no policy
checking of commits)

*/x-*

No push access, unless the previous rule also matches

others

Regular access (no delete or rebase/move, names of newly created
branches and tags must contain no slashes, and branch names must not
consist entirely of digits and full stops)

2011-01-23

2011-01-23 14:21:35 by Marcus Comstedt <marcus@mc.pp.se>

Fix problem when changing a file into a directory

Add a second "allow_empty" mode to get_committed_file, which returns
the empty string is the named file is actually a directory. This is
used by the check_ident() function, which is ok since a directory
can't contain any expanded idents, so there is nothing to check.

Note that get_staged_file() ought to support this mode as well.
Currently, running get_staged_file() on a directory actually returns
the contents of the first file in the directory, which is a bug.

2011-01-13

2011-01-13 11:02:08 by Marcus Comstedt <marcus@mc.pp.se>

Check that pushes preserve first-parent ancestry

In addition to checking that a push is fast-forward, make sure
that the old head can be reached through first-parent pointers only.
This prevents tracking branches which have been pulled with merge
instead of rebase from being pushed by mistake.

2010-11-01

2010-11-01 22:30:48 by Marcus Comstedt <marcus@mc.pp.se>

Improve performance of run_git_ex()

Instead of calling Pike.DefaultBackend() until p->status() says tha
the process has terminated, loop until both stdout and stderr have
been closed. This is better because otherwise we may be stuck
inside the backend for up to one second while the process is already
terminated. This change gives a considerable speedup on Solaris.

2010-10-10

2010-10-10 19:38:22 by Martin Stjernholm <mast@lysator.liu.se>

Report all errors instead of stopping at the first one.

2010-10-10 19:23:05 by Martin Stjernholm <mast@lysator.liu.se>

Improved some error messages.

2010-10-04

2010-10-04 22:45:33 by Marcus Comstedt <marcus@mc.pp.se>

Relax check on removal of foreign_ident

The foreign_ident attribute is now allowed to be removed from a file
which has already been been deprived of its expanded ident string.
This situation can happen when amending rebased commits.

2010-10-04 20:33:30 by Martin Stjernholm <mast@lysator.liu.se>

Don't fail in check_ident on deleted files.

2010-10-04 14:10:46 by Marcus Comstedt <marcus@mc.pp.se>

Only check each commit once in the recieve hook.

2010-10-04 10:54:33 by Marcus Comstedt <marcus@mc.pp.se>

Add a post-rewrite hook to check rebases.

2010-10-04 10:54:32 by Marcus Comstedt <marcus@mc.pp.se>

Re-run tests in post-commit hook

If amending a commit, the pre-commit hook will only see the
new changes being amended to the commit, not the changes
which were originally in the commit. Therefore, amending
an old broken commit might not show all problems unless
the result is also double checked.

2010-10-03

2010-10-03 23:10:58 by Martin Stjernholm <mast@lysator.liu.se>

Made it to work with 7.6.

To be a bit nicer to folks that have that old version in their paths, as
it's still the stock version coming with many dists.

2010-10-03 12:02:13 by Marcus Comstedt <marcus@mc.pp.se>

Check also for weird control characters in recoded commit message.

2010-10-03 11:51:23 by Marcus Comstedt <marcus@mc.pp.se>

Check encoding of commit messages.

2010-10-02

2010-10-02 15:11:13 by Marcus Comstedt <marcus@mc.pp.se>

Check dates of commits.

2010-10-02 15:07:10 by Marcus Comstedt <marcus@mc.pp.se>

Make sure that git diff understands that .gitattributes is a pathname.

2010-09-27

2010-09-27 21:51:57 by Marcus Comstedt <marcus@mc.pp.se>

Check that tags are not moved and branches only fast-forwarded.

2010-09-27 21:15:03 by Marcus Comstedt <marcus@mc.pp.se>

Optimized attribute lookup.

2010-09-27 21:07:24 by Marcus Comstedt <marcus@mc.pp.se>

Added a post commit hook, to re-checkout files with ident.

2010-09-26

2010-09-26 21:01:57 by Marcus Comstedt <marcus@mc.pp.se>

"fe" should have been "fi".

2010-09-26 20:49:35 by Marcus Comstedt <marcus@mc.pp.se>

Made a convenience function to split with \n and remove last element.

2010-09-26 20:46:29 by Marcus Comstedt <marcus@mc.pp.se>

Prevent code working with idents from being munged by the ident handling itself...

2010-09-26 20:35:38 by Marcus Comstedt <marcus@mc.pp.se>

Improve code reuse yet a little more.

2010-09-26 20:15:19 by Marcus Comstedt <marcus@mc.pp.se>

Improve code reuse a little more.

2010-09-26 20:14:48 by Marcus Comstedt <marcus@mc.pp.se>

Improve code reuse a little.

2010-09-26 17:24:49 by Marcus Comstedt <marcus@mc.pp.se>

Pre-reverse attribute arrays for simpler access.

2010-09-25

2010-09-25 20:39:18 by Marcus Comstedt <marcus@mc.pp.se>

Improved attribute checking in server hook.

2010-09-25 20:01:26 by Marcus Comstedt <marcus@mc.pp.se>

Server side hook.

2010-09-25 17:32:11 by Marcus Comstedt <marcus@mc.pp.se>

Disable stupid filter.

2010-09-25 17:30:28 by Marcus Comstedt <marcus@mc.pp.se>

Don't process changes to macro definitions in .gitattributes.

2010-09-25 17:28:29 by Marcus Comstedt <marcus@mc.pp.se>

Restrict use of .gitattributes to top level dir.

2010-09-25 17:19:32 by Marcus Comstedt <marcus@mc.pp.se>

Check for removal of lines from .gitattributes.

2010-09-25 14:43:41 by Marcus Comstedt <marcus@mc.pp.se>

Handle foreign_idents.

2010-09-25 13:48:09 by Marcus Comstedt <marcus@mc.pp.se>

Check for blocker attributes on commit.

2010-09-25 13:09:17 by Marcus Comstedt <marcus@mc.pp.se>

Replace PostCheckoutHook with PreCommitHook.

2010-09-05

2010-09-05 15:35:05 by Marcus Comstedt <marcus@mc.pp.se>

Learn how to count... :)

2010-09-05 15:19:58 by Marcus Comstedt <marcus@mc.pp.se>

Name params to post-checkout hook.

2010-09-05 15:17:27 by Marcus Comstedt <marcus@mc.pp.se>

No args given to filter functions...

2010-09-05 15:15:04 by Marcus Comstedt <marcus@mc.pp.se>

Nice, but ultimately useless, ident filter finished...

2010-09-05 14:34:01 by Marcus Comstedt <marcus@mc.pp.se>

Whitespace fixes, and added a missing error message.

2010-09-05 14:28:50 by Marcus Comstedt <marcus@mc.pp.se>

Added missing return statement.

2010-09-05 14:09:37 by Marcus Comstedt <marcus@mc.pp.se>

Initial framework.