summaryrefslogtreecommitdiff
path: root/Userland/Utilities/diff.cpp
AgeCommit message (Collapse)Author
2023-02-13LibCore: Remove `Stream.h`Tim Schumacher
2023-02-13LibCore: Move Stream-based file into the `Core` namespaceTim Schumacher
2023-01-27AK: Remove StringBuilder::build() in favor of to_deprecated_string()Linus Groh
Having an alias function that only wraps another one is silly, and keeping the more obvious name should flush out more uses of deprecated strings. No behavior change.
2022-12-12LibCore: Rename `Stream::read_all` to `read_until_eof`Tim Schumacher
This generally seems like a better name, especially if we somehow also need a better name for "read the entire buffer, but not the entire file" somewhere down the line.
2022-12-06AK+Everywhere: Rename String to DeprecatedStringLinus Groh
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
2022-11-19diff: Port to Core::StreamSam Atkins
Also switched to calling Core::System::isatty(), and doing so once instead of per hunk.
2022-07-12Everywhere: Replace single-char StringView op. arguments with charssin-ack
This prevents us from needing a sv suffix, and potentially reduces the need to run generic code for a single character (as contains, starts_with, ends_with etc. for a char will be just a length and equality check). No functional changes.
2022-04-01Everywhere: Run clang-formatIdan Horowitz
2021-12-16diff: Port to LibMainKenneth Myhra
2021-09-24diff: Only color output when stdout is a ttyMustafa Quraish
If we're redirecting the output somewhere, we likely don't want to have ANSI codes in the middle of our diff output.
2021-09-24diff: Show start/end of line ranges in source/target filesMustafa Quraish
This behaves very much like the regular diff command, showing the start lines and ranges of additions/changes/deletions in both the source and target files.
2021-09-17Utilities: Add a basic `diff` utilityMustafa Quraish