Skip to content

ls: apply two-line --time-style format to old/recent files correctly - #12681

Open
sylvestre wants to merge 1 commit into
uutils:mainfrom
sylvestre:ls-time-style-recent-old
Open

ls: apply two-line --time-style format to old/recent files correctly#12681
sylvestre wants to merge 1 commit into
uutils:mainfrom
sylvestre:ls-time-style-recent-old

Conversation

@sylvestre

Copy link
Copy Markdown
Contributor

FORMAT1 NEWLINE FORMAT2 should use FORMAT1 for non-recent (old) files and FORMAT2 for recent files; the assignment was reversed.

Closes: #12676

@sylvestre
sylvestre force-pushed the ls-time-style-recent-old branch from d3c2084 to 3be1309 Compare June 7, 2026 19:54
@cakebaker

Copy link
Copy Markdown
Contributor

Sorry, there is a merge conflict :|

FORMAT1 NEWLINE FORMAT2 should use FORMAT1 for non-recent (old) files
and FORMAT2 for recent files; the assignment was reversed.
@sylvestre
sylvestre force-pushed the ls-time-style-recent-old branch from 3be1309 to c5ecc52 Compare July 4, 2026 16:32
@codspeed-hq

codspeed-hq Bot commented Jul 4, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 4.88%

⚡ 1 improved benchmark
✅ 330 untouched benchmarks
⏩ 46 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation sort_ascii_utf8_locale 16.1 ms 15.4 ms +4.88%

Tip

Curious why this is faster? Comment @codspeedbot explain why this is faster on this PR, or directly use the CodSpeed MCP with your agent.


Comparing sylvestre:ls-time-style-recent-old (c5ecc52) with main (51529dc)

Open in CodSpeed

Footnotes

  1. 46 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown

GNU testsuite comparison:

Skip an intermittent issue tests/tail/retry (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/date/resolution (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/tail/tail-n0f (passes in this run but fails in the 'main' branch)
Skip an intermittent issue tests/pr/bounded-memory (was skipped on 'main', now failing)

@mixmastamyk

mixmastamyk commented Jul 30, 2026

Copy link
Copy Markdown

Hi, this needs attention.

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.

TIME_STYLE format is implemented backwards

3 participants