<p></p>
<p>Here's a little test setup to formalize the use-case:</p>
<pre><code>mkdir r1
cd r1

git init
echo "f1" >> f1
git add f1
git commit -a -m "added f1"
git config user.name testuser
git config user.email testuser@
git commit -a -m "added f1"

git worktree add ../w1 -b work1
echo "f1:r1" >> f1
git status

cd ../w1
git status
echo "f2" >> f2
git add f2
git commit -a -m "f2"
echo "f1:w1" >> f1
git status
</code></pre>
<p>Then in Geany, open both files: <code>r1/f1</code> and <code>w1/f1</code>. Check:</p>
<ol>
<li>The Version Control actions should be available for both files</li>
<li>Status for each of the <code>f1</code> files should show the corresponding branch names (<code>master</code>, <code>work1</code>) and state: <code>modified</code>.</li>
<li>Diff for each file should list the respective changes (single line added <code>f1:r1</code>, <code>f1:w1</code>)</li>
<li>Commit dialog should list only one <code>f1</code> file (per tree)</li>
<li>Commit should succeed for each of the trees</li>
<li>Final history for each file should list only tree-specific commits.</li>
</ol>
<p>In the current Geany version (1.37), the step 1. above is failing for the <code>w1/f1</code> file (worktree-based).</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany-plugins/issues/285#issuecomment-731819415">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJZX6SIAJFAISL6RXGTSRFOUDANCNFSM4BQICEEA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ35XRKZYNUT4TWYARTSRFOUDA5CNFSM4BQICEEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFOPK3FY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany-plugins/issues/285#issuecomment-731819415",
"url": "https://github.com/geany/geany-plugins/issues/285#issuecomment-731819415",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>