Pijul diff displays nothing and pijul diff --short yes

I add new file:

echo "nova prova" > prova3.md

and pijul diff displays nothing meanwhile pijul diff --short displays:

$ pijul diff --short
U .ignore
U prova1.md
U prova3.md

It seems a bit paradoxical, as user point of view.

It does and doesn’t seem to follow the help, which says

Shows difference between two channels/changes

    pijul diff [FLAGS] [OPTIONS] [PREFIXES]...

    <PREFIXES>...    Only diff those paths (files or directories). If missing, diff the entire

    -h, --help         Print help information
        --json         Output the diff in JSON format instead of the default change text format
        --short        Show a short version of the diff
        --tag          Add all the changes of this channel as dependencies (except changes implied
                       transitively), instead of the minimal dependencies
        --untracked    Include the untracked files
    -V, --version      Print version information

        --channel <CHANNEL>         Compare with this channel
        --repository <REPO_PATH>    Set the repository where this command should run. Defaults to
                                    the first ancestor of the current directory that contains a
                                    `.pijul` directory

So there is nothing in the default channel, so nothing to diff.
At the same time, there is a flag for showing untracked files.

Sounds like a bug. Are you on OSX?

1 Like

I’m in GNU/Linux, specifically Artixlinux, a derivative of Arch. I use this package

This looks a lot like a less-related bug. What’s the output of less --version?


$ less --version
less 590 (PCRE2 regular expressions)
Copyright (C) 1984-2021  Mark Nudelman

less comes with NO WARRANTY, to the extent permitted by law.
For information about the terms of redistribution,
see the file named README in the less distribution.
Home page: https://greenwoodsoftware.com/less