@@ -504,8 +504,13 @@ function update_rerere_cache
cd $DIM_PREFIX/drm-rerere/
git pull &> /dev/null
- mkdir $(rr_cache_dir) &> /dev/null || true
- cp rr-cache/* $(rr_cache_dir) -r --preserve=timestamps
+ if [ -d $(rr_cache_dir) ] ; then
+ rm -Rf $(rr_cache_dir)
+ fi
+ if [ ! -L $(rr_cache_dir) ] ; then
+ ln -s "$DIM_PREFIX/drm-rerere/rr-cache" $(dirname $(rr_cache_dir))
+ fi
+
cd - > /dev/null
echo "Done."
@@ -519,8 +524,6 @@ function commit_rerere_cache
if git_is_current_branch rerere-cache ; then
remote=$(branch_to_remote rerere-cache)
- rm $(rr_cache_dir)/rr-cache -Rf &> /dev/null || true
- cp $(rr_cache_dir)/* rr-cache -r --preserve=timestamps
git pull >& /dev/null
git add ./*.patch >& /dev/null || true
for file in $(git ls-files); do
@@ -543,17 +546,6 @@ function commit_rerere_cache
fi
}
-function dim_revert_rerere
-{
- local commit
-
- commit=${1:?$usage}
-
- cd $DIM_PREFIX/drm-rerere/
- git revert $commit
- rm $(rr_cache_dir)/* -Rf
-}
-
dim_alias_rebuild_nightly=rebuild-tip
function dim_rebuild_tip
{
@@ -247,15 +247,6 @@ Rebuild and push the integration tree.
ADVANCED COMMANDS FOR COMMITTERS AND MAINTAINERS
================================================
-revert-rerere *rerere-cache-commit-ish*
----------------------------------------
-When a stored conflict resolution in the integration tree is wrong, this command
-can be used to fix up the mess. First figure out which commit in the
-*rerere-cache* branch contains the bogus conflict resolution, then revert it
-using this command. This ensures the resolution is also purged from any local
-caches, to make sure it doesn't get resurrected. Then run *rebuild-tip* to redo
-the merges, correctly.
-
cat-to-fixup
------------
Pipes stdin into the fixup patch file for the current drm-tip merge.