Commit 2d5bd4e
committed
feat: Add tag temporal sorting for automatic chronological tag ordering
Implements automatic tag temporal sorting to eliminate manual ordering requirements
for API Compatible Tags in recursive dependency resolution.
Features:
- New -EnableTagSorting parameter (disabled by default)
- Automatic tag date fetching using git for-each-ref
- Chronological tag sorting based on actual git tag creation dates
- Priority-based tag selection algorithm favoring specified "Tag" values
- Relaxed temporal ordering requirements when enabled
- Comprehensive debug and verbose logging
Benefits:
- Eliminates manual temporal ordering burden for users
- Reduces configuration errors and maintenance overhead
- Enables flexible API Compatible Tags ordering
- Provides accurate chronological selection using real git dates
- Maintains full backward compatibility
Technical Implementation:
- Get-GitTagDates function for efficient tag date retrieval
- Sort-TagsByDate function with PSCustomObject for reliable sorting
- Enhanced Update-RepositoryDictionary with intelligent tag selection
- Improved Get-TagUnion with temporal sorting support
- Tag date caching in repository dictionary for performance
Breaking Changes: None (opt-in feature, disabled by default)1 parent 0b14463 commit 2d5bd4e
File tree
4 files changed
+563
-87
lines changed4 files changed
+563
-87
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
8 | 46 | | |
9 | 47 | | |
10 | 48 | | |
| |||
0 commit comments