Closed jvgomg closed 6 years ago
Auto Git always include the content directory path when running git add
. This way, new, modified, and deleted files are always included in the commit. What would adding the --all
flag change?
The default behaviour changed in a recent version of git. This explicit flag will restore the staging of deleted files.
In the past I've had people complain about Git support for <v2.0 version and changed some command run by the plugin to accommodate for that. What specific issue do you run into without this flag?
The issue I was having was deleted/renamed files where not being committed. I had lots of removed files in my working directory that should have been commuted.
I found a stackoverflow answer which explains the git 2.0 behaviour. https://stackoverflow.com/questions/572549/difference-between-git-add-a-and-git-add
My understanding is that this change is backwards compatible for git 1.0
On Tue, 13 Feb 2018 at 16:51, Pedro Borges notifications@github.com wrote:
In the past I've had people complain about Git support for <v2.0 version and changed some command run by the plugin to accommodate for that. What specific issue do you run into without this flag?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pedroborges/kirby-autogit/pull/40#issuecomment-365328916, or mute the thread https://github.com/notifications/unsubscribe-auth/AAZ9LU5tzhBQRaX2j0cgPhSFxsrqTZRHks5tUb2KgaJpZM4RyhkN .
This change will now stage deleted files on git 2.0 and higher