summaryrefslogtreecommitdiff
path: root/Omni
diff options
context:
space:
mode:
authorBen Sima <ben@bensima.com>2025-11-22 16:58:04 -0500
committerBen Sima <ben@bensima.com>2025-11-22 16:58:04 -0500
commit5ef096d51ff816f9d78033d7e92191041de8c4d7 (patch)
treee97bfa00517dcd0bd8e410618c6749d03ce334c9 /Omni
parentdbb16dd9c86ec5ac0e73f29e32a6beee377672da (diff)
parenta1a4d4d8013487ea9ae48e8b4fef10097fa76a4d (diff)
task: complete t-1o2bxcq7999.1 (Merge)
Amp-Thread-ID: https://ampcode.com/threads/T-ca3b086b-5a85-422a-b13d-256784c04221 Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'Omni')
-rwxr-xr-xOmni/Ide/hooks/post-checkout4
-rw-r--r--Omni/Task.hs4
2 files changed, 7 insertions, 1 deletions
diff --git a/Omni/Ide/hooks/post-checkout b/Omni/Ide/hooks/post-checkout
index 3fe14b5..7c8bcb9 100755
--- a/Omni/Ide/hooks/post-checkout
+++ b/Omni/Ide/hooks/post-checkout
@@ -15,6 +15,10 @@ then
MakeTags "${changed[@]}"
fi
+# Configure git merge driver for tasks
+git config merge.agent.name "Agent Merge Driver" || true
+git config merge.agent.driver "agent merge-driver %A %B" || true
+
# Task manager: Import tasks after branch switch
if [ -f .tasks/tasks.jsonl ]; then
task import -i .tasks/tasks.jsonl 2>/dev/null || true
diff --git a/Omni/Task.hs b/Omni/Task.hs
index b62e1c1..12842db 100644
--- a/Omni/Task.hs
+++ b/Omni/Task.hs
@@ -117,7 +117,9 @@ move args
let quiet = args `Cli.has` Cli.longOption "quiet"
initTaskDb
callCommand "git config commit.template .gitmessage"
- unless quiet <| putText "Task database initialized and git commit template configured. Use 'task create' to add tasks."
+ callCommand "git config merge.agent.name 'Agent Merge Driver' || true"
+ callCommand "git config merge.agent.driver 'agent merge-driver %A %B' || true"
+ unless quiet <| putText "Task database initialized and configured. Use 'task create' to add tasks."
| args `Cli.has` Cli.command "create" = do
title <- getArgText args "title"
taskType <- case Cli.getArg args (Cli.longOption "type") of