all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: rms@gnu.org
Cc: emacs-devel@gnu.org, dgutov@yandex.ru
Subject: Re: [Emacs-diffs] master 4e23cd0 4/5: * mail/rmail.el	(rmail-show-message-1): When displaying a mime message,
Date: Mon, 06 Apr 2015 10:43:41 +0300	[thread overview]
Message-ID: <83egnxln0y.fsf@gnu.org> (raw)
In-Reply-To: <E1YezvV-0002G7-Eq@fencepost.gnu.org>

> Date: Mon, 06 Apr 2015 01:50:25 -0400
> From: Richard Stallman <rms@gnu.org>
> CC: dgutov@yandex.ru, emacs-devel@gnu.org
> 
>     > It is a good idea to examine what you are about to push, before
>     > actually doing so, because fixing mistakes before pushing is much
>     > easier (see the next section). To do that, use the command "git diff
>     > origin/master". If you want to show your unpushed commits with their
>     > commit log messages, use "git show origin/master.." instead.
> 
> It is not clear to me how these two differ.  Does "git show origin/master.."
> output everything that "git diff origin/master" outputs, plus log messages?

Yes, that's the only real difference between them, when you have no
uncommitted changes.  (When you do have uncommitted changes, "git
diff" will include them, while "git show" will not.)

> What are the two periods for?

That's because "git show" expects a range of commits to show, and the
two dots are part of specifying a range.  The full spec of what you
want is "origin/master..HEAD", where HEAD stands for the last commit
in your local branch, but HEAD can be omitted for shorthand purposes.

By contrast, "git diff" takes a single commit argument, and displays
the diffs between the working tree and that commit.

Do you think it would be best to keep only "git show" there and delete
the reference to "git diff"?



  reply	other threads:[~2015-04-06  7:43 UTC|newest]

Thread overview: 74+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20150405124321.362.95112@vcs.savannah.gnu.org>
     [not found] ` <E1Yejtc-00007F-4B@vcs.savannah.gnu.org>
2015-04-05 12:56   ` [Emacs-diffs] master 4e23cd0 4/5: * mail/rmail.el (rmail-show-message-1): When displaying a mime message, Dmitry Gutov
2015-04-05 13:08     ` Eli Zaretskii
2015-04-05 13:16       ` Dmitry Gutov
2015-04-05 15:43         ` Eli Zaretskii
2015-04-05 19:47           ` Dmitry Gutov
2015-04-05 20:07             ` Eli Zaretskii
2015-04-05 22:32               ` Dmitry Gutov
2015-04-06  7:54                 ` Eli Zaretskii
2015-04-06 12:03                   ` Dmitry Gutov
2015-04-06 12:24                     ` Eli Zaretskii
2015-04-06 23:32                       ` Dmitry Gutov
2015-04-07  6:12                         ` Eli Zaretskii
2015-04-07 16:13                   ` Richard Stallman
2015-04-07 16:32                     ` Eli Zaretskii
2015-04-07 16:51                     ` Alan Mackenzie
2015-04-07 17:12                       ` Eli Zaretskii
2015-04-07 20:11                         ` Alan Mackenzie
2015-04-08  6:36                           ` Eli Zaretskii
2015-04-08  1:38                       ` Dmitry Gutov
2015-04-08 10:48                         ` Alan Mackenzie
2015-04-08 22:19                           ` chad
2015-04-09 13:16                             ` Richard Stallman
2015-04-09  1:16                           ` Dmitry Gutov
2015-04-09  7:27                             ` Eli Zaretskii
2015-04-09 12:20                               ` Dmitry Gutov
2015-04-09 12:51                                 ` Eli Zaretskii
2015-04-09 16:12                                   ` Dmitry Gutov
2015-04-08 18:19                         ` Richard Stallman
2015-04-09  1:31                           ` Dmitry Gutov
2015-04-09  7:36                             ` Eli Zaretskii
2015-04-09 16:24                               ` Stephen J. Turnbull
2015-04-09 16:35                                 ` Eli Zaretskii
2015-04-10  4:53                                   ` Stephen J. Turnbull
2015-04-10  7:49                                     ` Eli Zaretskii
2015-04-10  8:30                                       ` Stephen J. Turnbull
2015-04-11 19:18                                 ` Richard Stallman
2015-04-12  6:10                                   ` Stephen J. Turnbull
2015-04-13 21:06                                 ` Alan Mackenzie
2015-04-13 23:08                                   ` Stephen J. Turnbull
2015-04-14 17:16                                     ` Alan Mackenzie
2015-04-14 17:31                                       ` Eli Zaretskii
2015-04-14 21:23                                         ` João Távora
2015-04-15  2:46                                           ` Eli Zaretskii
2015-04-15  8:09                                             ` Harald Hanche-Olsen
2015-04-15 16:13                                               ` Eli Zaretskii
2015-04-15 16:21                                                 ` Harald Hanche-Olsen
2015-04-15 16:36                                                   ` Eli Zaretskii
2015-04-14 21:47                                       ` Steinar Bang
2015-04-08 18:21                       ` Richard Stallman
2015-04-08 18:29                         ` Eli Zaretskii
2015-04-08 19:18                           ` John Yates
2015-04-09 13:41                             ` Stephen J. Turnbull
2015-04-08  1:32                     ` Dmitry Gutov
2015-04-08 18:19                       ` Richard Stallman
2015-04-09  1:19                         ` Dmitry Gutov
2015-04-09  7:31                           ` Eli Zaretskii
2015-04-09 11:43                             ` Dmitry Gutov
2015-04-07 20:45                   ` Stephen J. Turnbull
2015-04-08  5:39                     ` Eli Zaretskii
2015-04-05 17:42         ` Richard Stallman
2015-04-05 18:04           ` Eli Zaretskii
2015-04-06  5:50             ` Richard Stallman
2015-04-06  7:43               ` Eli Zaretskii [this message]
2015-04-06  7:45                 ` Harald Hanche-Olsen
2015-04-07 16:13                 ` Richard Stallman
2015-04-07 17:05                   ` Eli Zaretskii
2015-04-08 12:02                 ` Sebastien Vauban
2015-04-08 12:26                   ` Harald Hanche-Olsen
2015-04-08 18:01                     ` Stephen J. Turnbull
2015-04-08 12:38                   ` Eli Zaretskii
2015-04-15  0:34               ` Rostislav Svoboda
2015-04-05 17:42     ` Richard Stallman
2015-04-05 19:01       ` Harald Hanche-Olsen
2015-04-05 21:00       ` Dmitry Gutov

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83egnxln0y.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=dgutov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.