Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Ignore the Syncthing folder marker directory - #4954

Merged
dooleydevin merged 1 commit into
github:mainfrom
SSuva4:syncthing-marker-directory
Dec 4, 2026
Merged

dooleydevin merged 1 commit into
github:mainfrom
SSuva4:syncthing-marker-directory

Conversation

@SSuva4

@SSuva4 SSuva4 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Link to the application or project's homepage

Syncthing

Reasons for making this change

Syncthing writes a marker file containing a folder ID and creation timestamp inside .stfolder/. When a synced directory is also a Git working tree, that file shows up as untracked and can be added by accident. This follows up on #4057, which closed without merging, and scopes the rule to the marker directory.

Tested with git check-ignore in a fresh repository. The original template left .stfolder/syncthing-folder-a1b2c3.txt visible. The updated template ignores that path at the root and under a nested sync folder. Both .stignore and ordinary project files remain visible, and the existing version-history and temporary-file rules still match.

Links to documentation supporting these rule changes

The Syncthing FAQ explains the purpose of the marker. CreateMarker and markerContents show how Syncthing populates the directory.

Merge and Approval Steps

@SSuva4
SSuva4 requested a review from a team as a code owner December 2, 2026 22:03
Copilot AI adaptive review requested due to automatic review settings December 2, 2026 22:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain, and the change is limited to adding the intended Syncthing marker-directory ignore rule while preserving existing rules.

No open issues 🎉

What changed in this PR

Adds Git ignore coverage for Syncthing’s local .stfolder marker directory, preventing marker files from appearing as untracked files in repositories.

Changes:

  • Ignores .stfolder/ directories at any depth.
  • Preserves existing Syncthing cache and temporary-file rules.
File Description
Global/​Syncthing.gitignore Adds the .stfolder/ ignore pattern while preserving existing Syncthing rules.

Review effort: Lite (adaptive)

@dooleydevin

Copy link
Copy Markdown
Collaborator

Thank you for this!

@dooleydevin
dooleydevin merged commit 34e7fdd into github:main Dec 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants