git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git stash changes ORIG_HEAD
@ 2019-01-25  0:22 Norbert Kiesel
  0 siblings, 0 replies; only message in thread
From: Norbert Kiesel @ 2019-01-25  0:22 UTC (permalink / raw)
  To: git

Hi,

I monitor a couple of Git repos by reviewing changes via:

% git pull
% git log -p -w --no-merges ORIG_HEAD..

This works wonderfully for me.  However, sometimes I have pending
changes in my repo (because I did not yet committed them to a new
branch).  I thought I could simply use

% git pull --rebase --autostash
% git log -p -w --no-merges ORIG_HEAD..

However, this does not work as intended because stashing moves
ORIG_HEAD.  Right now I use

% orig=$(git rev-parse HEAD)
% git pull --rebase --autostash
% git log -p -w --no-merges orig..

Is it really necessary that ORIG_HEAD is moved while stashing? This
does defeat it's purpose because it's always identical to HEAD after
the stash is applied. Or could we have an option to not do that? Or is
there already another symbolic
name I could use?

Best,
  Norbert

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

only message in thread, other threads:[~2019-01-25  0:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-25  0:22 git stash changes ORIG_HEAD Norbert Kiesel

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).