From: Dennis Kaarsemaker <dennis@kaarsemaker.net>
To: git@vger.kernel.org
Cc: Dennis Kaarsemaker <dennis@kaarsemaker.net>
Subject: [PATCH v4 0/2] diff --no-index: support symlinks and pipes
Date: Fri, 24 Mar 2017 22:31:08 +0100 [thread overview]
Message-ID: <20170324213110.4331-1-dennis@kaarsemaker.net> (raw)
git diff <(command1) <(command2) is less useful than it could be, all it outputs is:
diff --git a/dev/fd/63 b/dev/fd/62
index 9e6542b297..9f7b2c291b 120000
--- a/dev/fd/63
+++ b/dev/fd/62
@@ -1 +1 @@
-pipe:[464811685]
\ No newline at end of file
+pipe:[464811687]
\ No newline at end of file
Normal diff provides arguably better output: the diff of the output of the
commands. This series makes it possible for git diff --no-index to follow
symlinks and read from pipes, mimicking the behaviour of normal diff.
v1: http://public-inbox.org/git/20161111201958.2175-1-dennis@kaarsemaker.net/
v2: http://public-inbox.org/git/20170113102021.6054-1-dennis@kaarsemaker.net/
v3: http://public-inbox.org/git/20170318210038.22638-1-dennis@kaarsemaker.net/
Changes since v3:
Using the --dereference option without being in explicit or implicit no-index
mode is no longer silently ignored, but an error. A test has been added for
this behaviour.
Dennis Kaarsemaker (2):
diff --no-index: optionally follow symlinks
diff --no-index: support reading from pipes
Documentation/diff-options.txt | 9 +++++++
builtin/diff.c | 2 ++
diff-no-index.c | 16 ++++++++++---
diff.c | 30 +++++++++++++++++++----
diff.h | 2 +-
t/t4011-diff-symlink.sh | 6 +++++
t/t4053-diff-no-index.sh | 54 ++++++++++++++++++++++++++++++++++++++++++
t/test-lib.sh | 4 ++++
8 files changed, 115 insertions(+), 8 deletions(-)
--
2.12.0-488-gd3584ba
next reply other threads:[~2017-03-24 21:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-24 21:31 Dennis Kaarsemaker [this message]
2017-03-24 21:31 ` [PATCH v4 1/2] diff --no-index: optionally follow symlinks Dennis Kaarsemaker
2017-03-24 22:56 ` Junio C Hamano
2017-03-25 21:30 ` Dennis Kaarsemaker
2017-03-26 3:42 ` Junio C Hamano
2017-03-24 21:31 ` [PATCH v4 2/2] diff --no-index: support reading from pipes Dennis Kaarsemaker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170324213110.4331-1-dennis@kaarsemaker.net \
--to=dennis@kaarsemaker.net \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).