<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-stash.sh, branch v1.7.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.7.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.7.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2010-05-21T11:02:23Z</updated>
<entry>
<title>Merge branch 'cb/maint-stash-orphaned-file'</title>
<updated>2010-05-21T11:02:23Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-05-21T11:02:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b7ef48d5d5f0d5b912a5ca84a7079803387586ae'/>
<id>urn:sha1:b7ef48d5d5f0d5b912a5ca84a7079803387586ae</id>
<content type='text'>
* cb/maint-stash-orphaned-file:
  stash tests: stash can lose data in a file removed from the index
  stash: Don't overwrite files that have gone from the index
</content>
</entry>
<entry>
<title>Merge branch 'sd/log-decorate'</title>
<updated>2010-05-09T05:36:14Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-05-09T05:36:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=72d9b222a940c93a8d915c26a4d5d077e23be871'/>
<id>urn:sha1:72d9b222a940c93a8d915c26a4d5d077e23be871</id>
<content type='text'>
* sd/log-decorate:
  log.decorate: only ignore it under "log --pretty=raw"
  script with rev-list instead of log
  log --pretty/--oneline: ignore log.decorate
  log.decorate: usability fixes
  Add `log.decorate' configuration variable.
  git_config_maybe_bool()

Conflicts:
	builtin/log.c
</content>
</entry>
<entry>
<title>stash: Don't overwrite files that have gone from the index</title>
<updated>2010-04-18T22:00:03Z</updated>
<author>
<name>Charles Bailey</name>
<email>charles@hashpling.org</email>
</author>
<published>2010-04-18T18:28:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7aa5d43cc6204efab0d2c2f4fbf46d2cfd350fec'/>
<id>urn:sha1:7aa5d43cc6204efab0d2c2f4fbf46d2cfd350fec</id>
<content type='text'>
The use of git add -u in create_stash isn't always complete. In
particular, if a file has been removed from the index but changed in the
work tree it will not be added to the stash's saved work tree tree
object. When stash then resets the work tree to match HEAD, any changes
will be lost.

To be complete, any work tree file which differs from HEAD needs to be
saved, regardless of whether it still appears in the index or not.

This is achieved with a combination of a diff against HEAD and a call to
update-index with an explicit list of paths that have changed.

Signed-off-by: Charles Bailey &lt;charles@hashpling.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>script with rev-list instead of log</title>
<updated>2010-04-09T06:13:48Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2010-04-08T19:42:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b0e621adfd5a60b7cbe95e59f09c87f0870321cb'/>
<id>urn:sha1:b0e621adfd5a60b7cbe95e59f09c87f0870321cb</id>
<content type='text'>
Because log.decorate now shows decorations for --pretty=oneline,
we must explicitly turn it off when scripting. Otherwise,
users with log.decorate set will get cruft like:

  $ git stash
  Saved working directory and index state WIP on master:
    2c1f7f5 (HEAD, master) commit subject

Instead of adding --no-decorate to the log command line,
let's just use the rev-list plumbing interface instead,
which does the right thing.

git-submodule has a similar call. Since it just counts the
commit lines, nothing is broken, but let's switch it, too,
for the sake of consistency and cleanliness.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Improve error messages from 'git stash show'</title>
<updated>2010-03-17T02:23:24Z</updated>
<author>
<name>Gustaf Hendeby</name>
<email>hendeby@isy.liu.se</email>
</author>
<published>2010-03-16T17:52:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=14cd458126c7c70f8cf180861e3db5ed3b788813'/>
<id>urn:sha1:14cd458126c7c70f8cf180861e3db5ed3b788813</id>
<content type='text'>
The previous error message "fatal: Needed a single revision" is not
very informative.

Signed-off-by: Gustaf Hendeby &lt;hendeby@isy.liu.se&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>stash: suggest the correct command line for unknown options.</title>
<updated>2010-03-07T04:00:42Z</updated>
<author>
<name>Matthieu Moy</name>
<email>Matthieu.Moy@imag.fr</email>
</author>
<published>2010-03-05T18:43:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5d005922bc781c1f6ec9ae0af466f308a7576612'/>
<id>urn:sha1:5d005922bc781c1f6ec9ae0af466f308a7576612</id>
<content type='text'>
Signed-off-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'maint-1.6.5' into maint-1.6.6</title>
<updated>2010-02-16T23:04:55Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-02-16T23:04:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=eb0bcd0fbe34befe7648a398efc7f4156b07da48'/>
<id>urn:sha1:eb0bcd0fbe34befe7648a398efc7f4156b07da48</id>
<content type='text'>
* maint-1.6.5:
  dwim_ref: fix dangling symref warning
  stash pop: remove 'apply' options during 'drop' invocation
  diff: make sure --output=/bad/path is caught
</content>
</entry>
<entry>
<title>stash pop: remove 'apply' options during 'drop' invocation</title>
<updated>2010-02-16T05:46:27Z</updated>
<author>
<name>Thomas Rast</name>
<email>trast@student.ethz.ch</email>
</author>
<published>2010-02-15T16:05:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=460ccd0e19774fd5e4f69de5a454068c686ac5a6'/>
<id>urn:sha1:460ccd0e19774fd5e4f69de5a454068c686ac5a6</id>
<content type='text'>
The 'git stash pop' option parsing used to remove the first argument
in --index mode.  At the time this was implemented, this first
argument was always --index.  However, since the invention of the -q
option in fcdd0e9 (stash: teach quiet option, 2009-06-17) you can
cause an internal invocation of

  git stash drop --index

by running

  git stash pop -q --index

which then of course fails because drop doesn't know --index.

To handle this, instead let 'git stash apply' decide what the future
argument to 'drop' should be.

Warning: this means that 'git stash apply' must parse all options that
'drop' can take, and deal with them in the same way.  This is
currently true for its only option -q.

Signed-off-by: Thomas Rast &lt;trast@student.ethz.ch&gt;
Acked-by: Stephen Boyd &lt;bebarino@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>stash: mention --patch in usage string.</title>
<updated>2010-01-02T18:40:55Z</updated>
<author>
<name>Matthieu Moy</name>
<email>Matthieu.Moy@imag.fr</email>
</author>
<published>2010-01-02T16:35:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dc89689e86c991c3ebb4d0b6c0cce223ea8e6e47'/>
<id>urn:sha1:dc89689e86c991c3ebb4d0b6c0cce223ea8e6e47</id>
<content type='text'>
Signed-off-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>stash list: drop the default limit of 10 stashes</title>
<updated>2009-10-20T05:28:26Z</updated>
<author>
<name>Thomas Rast</name>
<email>trast@student.ethz.ch</email>
</author>
<published>2009-10-19T15:48:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b7b10385a84c741a4fe219807c9511f69403640a'/>
<id>urn:sha1:b7b10385a84c741a4fe219807c9511f69403640a</id>
<content type='text'>
'git stash list' had an undocumented limit of 10 stashes, unless other
git-log arguments were specified.  This surprised at least one user,
but possibly served to cut the output below a screenful without using
a pager.

Since the last commit, 'git stash list' will fire up a pager according
to the same rules as the 'git log' it calls, so we can drop the limit.

Signed-off-by: Thomas Rast &lt;trast@student.ethz.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
