Package: git-core
Version: 1:1.5.3.8-1
Severity: wishlist
File: /usr/bin/git-stash

git-stash only stashes changes to tracked files.  I'd like the option
to stash new untracked files and even ignored files in the stash as
well.  This would offer several benefits:

* If my changes included adding new files, I don't want to lose or
  disturb those new files while working on whatever work required me
  to stash in the first place; I also don't want those new files
  affecting the post-stash work.  If git-stash stashed away untracked
  files, and perhaps even removed them from the working tree as it
  does for modified tracked files, I'd end up with a pristine tree
  again, and I could better separate my pre-stash and post-stash work.

* If I just built a large source tree, rebuilding it might take a
  while, even with ccache.  If I stash, then clean or rebuild the tree
  in the course of the work that required me to stash in the first
  place, I lose that time.  Furthermore, the presence of the build
  products may affect the post-stash build, unless I "make clean".
  Stashing the build products would solve this problem.

I suspect that git-stash should not do this by default.  For instance,
when using git on my home directory, I really don't want git stashing
away the gigabytes of untracked files; I suspect similar situations
arise in other repositories, where stashing untracked or ignored files
would take excessive time or disrupt files that the user wanted to
remain present.  However, I often find that I want the untracked or
ignored files stashed.  Perhaps git stash could have --untracked and
--ignored options?

- Josh Triplett

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-rc7 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages git-core depends on:
ii  cpio                    2.9-9            GNU cpio -- a program to manage ar
ii  libc6                   2.7-6            GNU C Library: Shared libraries
ii  libcurl3-gnutls         7.17.1-1         Multi-protocol file transfer libra
ii  libdigest-sha1-perl     2.11-2           NIST SHA-1 message digest algorith
ii  liberror-perl           0.17-1           Perl module for error/exception ha
ii  libexpat1               1.95.8-4         XML parsing C library - runtime li
ii  perl-modules            5.8.8-12         Core Perl modules
ii  zlib1g                  1:1.2.3.3.dfsg-9 compression library - runtime

Versions of packages git-core recommends:
ii  curl                          7.17.1-1   Get a file from an HTTP, HTTPS or 
ii  less                          416-2      Pager program similar to more
ii  openssh-client [ssh-client]   1:4.7p1-2  secure shell client, an rlogin/rsh
ii  patch                         2.5.9-4    Apply a diff file to an original
ii  rsync                         2.6.9-6    fast remote file copy program (lik

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to