# [PATCH] doc: short status for delete + intent-to-add

2 messages from 2018-12-16 to 2018-12-16. Participants: Anthony Sottile, Duy Nguyen.
Thread: https://gitlist.dev/t/50047

## Anthony Sottile, 2018-12-16 17:55

Subject: [PATCH] doc: short status for delete + intent-to-add
Message-ID: <20181216175536.5535-1-asottile@umich.edu>
URL: https://gitlist.dev/e/20181216175536.5535-1-asottile%40umich.edu

```
$ git rm foo
rm 'foo'
$ touch foo
$ git add --intent-to-add foo
$ git status --short
DA foo

Signed-off-by: Anthony Sottile <asottile@umich.edu>
---
 Documentation/git-status.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/git-status.txt b/Documentation/git-status.txt
index d9f422d56..4af7424e5 100644
--- a/Documentation/git-status.txt
+++ b/Documentation/git-status.txt
@@ -202,7 +202,7 @@ in which case `XY` are `!!`.
 	     [AMD]   not updated
     M        [ MD]   updated in index
     A        [ MD]   added to index
-    D                deleted from index
+    D         [ A]   deleted from index
     R        [ MD]   renamed in index
     C        [ MD]   copied in index
     [MARC]           index and work tree matches
-- 
2.17.1


```

## Duy Nguyen, 2018-12-16 18:26

Subject: Re: [PATCH] doc: short status for delete + intent-to-add
Message-ID: <CACsJy8C+zLg0HUB-jx4tMSATLH30Jv0_bHkZ7JQRvfmVAn2DmA@mail.gmail.com>
URL: https://gitlist.dev/e/CACsJy8C%2BzLg0HUB-jx4tMSATLH30Jv0_bHkZ7JQRvfmVAn2DmA%40mail.gmail.com
In-Reply-To: <20181216175536.5535-1-asottile@umich.edu>

```
On Sun, Dec 16, 2018 at 7:10 PM Anthony Sottile <asottile@umich.edu> wrote:
>
> $ git rm foo
> rm 'foo'
> $ touch foo
> $ git add --intent-to-add foo
> $ git status --short
> DA foo

Twisted, but not wrong. It may also be a good idea to describe
intent-to-add status, which is probably something like

    [ D]        A    intent to add

>
> Signed-off-by: Anthony Sottile <asottile@umich.edu>
> ---
>  Documentation/git-status.txt | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/git-status.txt b/Documentation/git-status.txt
> index d9f422d56..4af7424e5 100644
> --- a/Documentation/git-status.txt
> +++ b/Documentation/git-status.txt
> @@ -202,7 +202,7 @@ in which case `XY` are `!!`.
>              [AMD]   not updated
>      M        [ MD]   updated in index
>      A        [ MD]   added to index
> -    D                deleted from index
> +    D         [ A]   deleted from index
>      R        [ MD]   renamed in index
>      C        [ MD]   copied in index
>      [MARC]           index and work tree matches
> --
> 2.17.1
>


-- 
Duy

```
