Skip to content

Conversation

@calmh
Copy link
Member

@calmh calmh commented Jan 13, 2024

This moves Result into a package of its own and cleans up the related naming a bit. The ShouldIgnore() method goes away, instead callers use the Match() method directly.

This enables the work in #9339.

calmh added 2 commits January 13, 2024 14:23
This moves Result into a package of its own and cleans up the related
naming a bit. The ShouldIgnore() method goes away, instead callers use the
Match() method directly.

This enables the work in syncthing#9339.
Comment on lines 16 to 17
// The bit flags are used by the ignore package to construct Results.
// Don't use them for comparison; use the convenience methods.
Copy link
Member

Choose a reason for hiding this comment

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

Could we get setters or a constructor for the result to use in ignore to avoid this?

Copy link
Member Author

Choose a reason for hiding this comment

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

We can!

@calmh calmh merged commit e041877 into syncthing:main Jan 13, 2024
calmh added a commit to calmh/syncthing that referenced this pull request Jan 14, 2024
* main: (24 commits)
  lib/ignore: Refactor out result type (syncthing#9343)
  build: Testing infra images for infra-* branches
  lib/versioner: Expand tildes in version directory (fixes syncthing#9241) (syncthing#9327)
  lib/scanner: Prevent sync-conflict for receive-only local modifications  (syncthing#9323)
  gui, man, authors: Update docs, translations, and contributors
  Fix website security link in README.md (syncthing#9325)
  cmd/syncthing: Add CLI completion functionality (fixes syncthing#8616) (syncthing#9226)
  lib/api: Save session & CSRF tokens to database, add option to stay logged in (fixes syncthing#9151) (syncthing#9284)
  Update dependencies (syncthing#9321)
  gui: Always inform about loading data in Restore Versions modal (syncthing#9317)
  lib/build: Allow semver build in version regex (fixes syncthing#9267) (syncthing#9316)
  gui: Keep short deviceID length consistent + xrefs (fixes syncthing#9313) (syncthing#9314)
  build(deps): bump actions/download-artifact from 3 to 4 (syncthing#9294)
  build(deps): bump actions/upload-artifact from 3 to 4 (syncthing#9293)
  gui, man, authors: Update docs, translations, and contributors
  gui, lib/scanner: Improve scan progress indication (ref syncthing#8331) (syncthing#9308)
  lib/protocol: handle empty names in unixOwnershipEqual (fixes syncthing#9039) (syncthing#9306)
  gui, man, authors: Update docs, translations, and contributors
  etc/linux-desktop: use double dash for long options (syncthing#9301)
  lib/connections: Skip allocation in check for missing port (syncthing#9297)
  ...
@calmh calmh added this to the v1.27.3 milestone Jan 22, 2024
calmh added a commit to calmh/syncthing that referenced this pull request Feb 2, 2024
* main:
  lib/model: Typo in method name (fixes syncthing#9389)
  lib/model: Typo in debug print (fixes syncthing#9386)
  build: Update dependencies (syncthing#9379)
  build(deps): bump actions/cache from 3 to 4 (syncthing#9363)
  lib/api: Improve folder summary event, verbose service (syncthing#9370)
  lib/protocol: Refactor interface (syncthing#9375)
  gui, man, authors: Update docs, translations, and contributors
  lib/fs: Add invalid UTF-8 guards to watcher (fixes syncthing#9369) (syncthing#9372)
  lib/api: Remove remnants of CSRF tokens file mentions (ref syncthing#9284)
  gui, man, authors: Update docs, translations, and contributors
  gui: Remove non-functional HTML from External Versioning tooltip (ref syncthing#8923) (syncthing#9358)
  cmd/ursrv: Add FreeBSD detection  (syncthing#9351)
  cmd/ursrv: Fix Arch detection (syncthing#9350)
  lib/ignore: Optimise ignoring directories for filesystem watcher (fixes syncthing#9339) (syncthing#9340)
  gui, man, authors: Update docs, translations, and contributors
  lib/ignore: Refactor out result type (syncthing#9343)
@st-review st-review added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label Apr 9, 2025
@syncthing syncthing locked and limited conversation to collaborators Apr 9, 2025
@calmh calmh deleted the ignrefactor branch May 26, 2025 13:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants