Skip to content

clarify git diff behavior when HEAD is omitted #1080

Open
@erinmgraham

Description

@erinmgraham

Maybe related, I stumbled upon the following sentence today:

Note that HEAD is the default option for git diff, so omitting it will not change the command’s output at all (give it a try).

I found this to be very confusing, because the output is only the same if no additional files have been staged since the last commit.

_Originally posted by @fkohrt in #769

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions