git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH] git-status: Document type changed status
@ 2020-10-25 20:29 toonn
  0 siblings, 0 replies; only message in thread
From: toonn @ 2020-10-25 20:29 UTC (permalink / raw)
  To: git; +Cc: martin.agren

Note: I composed this email manually because I could not get `git send-email` to work. I apologize for any additional trouble this causes and would appreciate any help to properly set it up.
`git send-email` with `--smtp-debug=1`:
```
Send this email? ([y]es|[n]o|[q]uit|[a]ll): y
Net::SMTP>>> Net::SMTP(2.31)
Net::SMTP>>>   Net::Cmd(2.29)
Net::SMTP>>>     Exporter(5.68)
Net::SMTP>>>   IO::Socket::INET(1.33)
Net::SMTP>>>     IO::Socket(1.36)
Net::SMTP>>>       IO::Handle(1.34)
Net::SMTP: Unexpected EOF on command channel at /Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/git-send-email line 1499.
Unable to initialize SMTP properly. Check config and use --smtp-debug. VALUES: server=secure.emailsrvr.com encryption=tls hello=terra.telenet.be port=465 at /Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/git-send-email line 1527.
```

Below the `git format-patch` output:

`git status -s` output a T for me after replacing a file with a symlink.
I'd never seen this status so I checked `git help status` but "T" wasn't
documented. `man git-diff-files` does have it listed among the possible
statuses.

I added both the terse description in the list of statuses and two lines
to the table explaining the difference between occuring in the X or Y
position. Improvements to both wording and formatting are welcome.

Signed-off-by: toonn <toonn@toonn.io>
---
 Documentation/git-status.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Documentation/git-status.txt b/Documentation/git-status.txt
index 7731b45f07..2ad85abe8c 100644
--- a/Documentation/git-status.txt
+++ b/Documentation/git-status.txt
@@ -196,6 +196,7 @@ codes can be interpreted as follows:
 * 'D' = deleted
 * 'R' = renamed
 * 'C' = copied
+* 'T' = type changed
 * 'U' = updated but unmerged
 
 Ignored files are not listed, unless `--ignored` option is in effect,
@@ -215,6 +216,9 @@ C        [ MD]   copied in index
 [ MARC]     D    deleted in work tree
 [ D]        R    renamed in work tree
 [ D]        C    copied in work tree
+-------------------------------------------------
+	   T    type changed in work tree
+T                type changed in index
 -------------------------------------------------
 D           D    unmerged, both deleted
 A           U    unmerged, added by us
-- 
2.17.2 (Apple Git-113)

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-25 20:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-25 20:29 [PATCH] git-status: Document type changed status toonn

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).