Every one of the projects in this repository is available at the canonical
URL git://git.madduck.net/madduck/pub/<projectpath> — see
each project's metadata for the exact URL.
All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
Allow untrusted mrconfig files to set parameters to true/false
* Allow untrusted mrconfig files to set parameters to true/false.
So skip=true or deleted=true canbe used in an untrusted mrconfig file.
* Also allow order=N in an untrusted mrconfig file.
I was trying to setup mr to handle a detached worktree git repository and
found out it was unable to determine the repository type.
It turned out my config only had "core.worktree=../../" set but no
"core.bare" and therefore, 'git_fake_bare_test' was unable to determine
it's a detached worktree dir.
So the attached patch fix this problem by checking for core.worktree instead
of core.bare in the config file.
Best regards,
Julien
Hello,<div>First, thanks for writing mr, I love it !</div><div><br><div>I was trying to setup mr to handle a detached worktree git repository and found out it was unable to determine the repository type. </div><div>It turned out my config only had "core.worktree=../../" set but no "core.bare" and therefore, 'git_fake_bare_test' was unable to determine</div>
<div>it's a detached worktree dir.</div><div><br></div><div>So the attached patch fix this problem by checking for core.worktree instead of core.bare in the config file.</div><div><br></div></div><div>Best regards,</div>
<div>Julien</div>
From b1c62a06c6c3668c52dd90014325d0c831a45ae7 Mon Sep 17 00:00:00 2001
From: Julien Rebetez <julien@fhtagn.net>
Date: Thu, 15 Sep 2011 14:59:47 +0200
Subject: [PATCH] Modify git_fake_bare_test to check core.worktree instead of
core.bare to determine if a given repository is a detached
worktree ('fake bar').
This allow mr to correctly handle the case where core.bare is missing
from the config file (implicitely false) and only core.worktree is set.
Joey Hess [Sun, 29 Aug 2010 18:53:57 +0000 (14:53 -0400)]
Added support for arbitrary pre and post hooks for all defined mr commands. For example, pre_commit is run before all commits; post_update is run after all updates. Closes: #481341
Joey Hess [Fri, 5 Feb 2010 22:13:17 +0000 (17:13 -0500)]
Fix the hours_since function built into mr's shell library to not exit, but return a true/false exit status. This allows it to be used outside of skip tests.
Joey Hess [Thu, 24 Dec 2009 17:23:27 +0000 (12:23 -0500)]
Allow empty sections to be used in mrconfig files.
Previously the parser only added a section if it had at least one
configuration line. With this change, an empty section cannot be checked
out by mr, but it can be updated, etc.
* mr bootstrap: Allow a directory to checkout into to be specified,
and create it if necessary.
* mr bootstrap: If the mrconfig file contains a repository named ".",
check it out into the top level of the directory bootstrapped.
Joey Hess [Fri, 7 Aug 2009 05:14:07 +0000 (01:14 -0400)]
Add support for ~/.mrtrust, which can be used to list trusted mrconfig files.
If you create this file, all files not listed in it will be treated as
untrusted, and carefully limited in what they can do. This improves
security when using mrconfig files provided by others.
Joey Hess [Fri, 7 Aug 2009 02:14:22 +0000 (22:14 -0400)]
Add -p switch, that makes mr search the current directory and its parents for a .mrconfig file to use. Useful for projects that want to publish a mrconfig file to use to check out their several repositories, without requiring users put it anywhere in particular.