<div dir="auto">Hi Bernhard,<div dir="auto"><br></div><div dir="auto">Yes, Squot does generally use the image as the (sole) working copy.</div><div dir="auto"><br></div><div dir="auto">The working copy in the file system is not touched. The repository can be bare (no working copy), but it doesn't have to be. The Git index is also not updated, that's why it shows you that all files were deleted in the file working copy: the index is empty, but the HEAD commit has a filled tree, so the diff is to delete everything. Don't commit that. ;-) To update the file working copy, use git reset or git checkout.</div><div dir="auto"><br></div><div dir="auto">To edit other files, you should checkout in the file working copy and add and commit them there. The "Unrecorded Files" is a placeholder for all such files (even if there are none).</div><div dir="auto"><br></div><div dir="auto">!Beware!: Squot does currently not merge these other files because it is not implemented yet at the Smalltalk-Git level! This is one of the issues why I didn't make an official announcement for the tools on the mailing list so far. If you merge in the image, it will currently take the other files from the first parent commit and *forget* those from the other branch (changes, as well as new files or deletions). But it won't lose your Smalltalk code. You'll have to fix up such merges in a file system working copy, or do the merge in the file system if there are no conflicts in the Smalltalk files.</div><div dir="auto"><br></div><div dir="auto">I got a pull request just today that should amend the problem, but I will not have time to look at it until in a few days.</div><div dir="auto"><br></div><div dir="auto"><span style="font-family:sans-serif">Still, the tools make working on Smalltalk code in a Git repository much easier, so these issues are usually worth the trade for the trouble in some situations.</span><br></div><div dir="auto"><br></div><div dir="auto">Squot is built to track other objects than packages as well, so you could track text files as Strings, for example. But I don't recommend it at this time because there are no proper tools for it yet and there are some bugs to be sorted out.</div><div dir="auto"><br></div><div dir="auto">Best regards,</div><div dir="auto">Jakob</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Bernhard Pieber <<a href="mailto:bernhard@pieber.com" rel="noreferrer noreferrer noreferrer" target="_blank">bernhard@pieber.com</a>> schrieb am Do., 11. Apr. 2019, 14:33:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jakob,<br>
<br>
Thanks for implementing Squeak support for Git. I have a few ;-) basic questions.<br>
<br>
As a first test I did the following:<br>
1. I opened the Git Browser from the Apps menu.<br>
2. In the Projects list's context menu I selected New project… > Add new project<br>
3. I entered squot-test1 as the project's name.<br>
4. I created a new directory in the directory containing the image named squot-test1, selected it and clicked Accept.<br>
5. I created a new empty class name BpSquotTest1 in a category with the same name.<br>
6. In the Projects list's context menu I selected Change tracked packages.<br>
7. In the newly opened window I selected the folder squot-test1and clicked ok.<br>
8. In the Git Browser I clicked the Commit Button.<br>
9. In the newly opened window I entered a commit message and clicked Commit.<br>
10. In the Git Browser's Objects list I now see BpSquotTest1.package and Unrecorded files.<br>
11. In a terminal in the squot-test1 directory I executed git status.<br>
12. I get the following result:<br>
<br>
MacBookPro1:squot-test1 bernhard$ git status<br>
On branch master<br>
Changes to be committed:<br>
  (use "git reset HEAD <file>..." to unstage)<br>
<br>
        deleted:    .squot<br>
        deleted:    BpSquotTest1.package/.filetree<br>
        deleted:    BpSquotTest1.package/.squot-contents<br>
        deleted:    BpSquotTest1.package/BpSquotTest2.class/README.md<br>
        deleted:    BpSquotTest1.package/BpSquotTest2.class/methodProperties.json<br>
        deleted:    BpSquotTest1.package/BpSquotTest2.class/properties.json<br>
        deleted:    BpSquotTest1.package/monticello.meta/<a href="http://categories.st" rel="noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">categories.st</a><br>
        deleted:    BpSquotTest1.package/monticello.meta/<a href="http://initializers.st" rel="noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">initializers.st</a><br>
        deleted:    BpSquotTest1.package/properties.json<br>
<br>
13. I added a new method named one to the class BpSquotTest1.<br>
14. I committed the change.<br>
<br>
Here are my questions:<br>
1. Did I understand correctly that the Smalltalk image itself is used as the working copy?<br>
2. Does that mean that there is no on-disk working tree in Squot and the on-disk repos are bare?<br>
3. How do you edit other files then, e.g. a README file?<br>
4. What does Unrecorded files mean in step 10?<br>
5. Why is repo not clean in step 12? Did I miss a step?<br>
6. How do I see that the working copy is not clean after step 13?<br>
<br>
Any help is appreciated.<br>
<br>
- Bernhard<br>
<br>
</blockquote></div>