git apply targetfile.patch logs warning: 1 line adds whitespace errors . I 
own a Windows PC so this must be an issue with line ending. Also if I use 
PowerShell console to output the diff to patch file, I get error fatal: 
unrecognized 
input<http://stackoverflow.com/questions/13675782/git-shell-in-windows-patchs-default-character-encoding-is-ucs-2-little-endian>

git stash -p works, but it is tedious when more than one file has 
modifications.

git checkout-index I couldn't find helpful information on this one.

On Thursday, May 2, 2013 11:54:49 PM UTC+3, Thomas Ferris Nicolaisen wrote:
>
> It sounds like a nice idea.. Maybe there is a git plumbing command for it. 
>
> What you could try instead perhaps is to work with patches. Instead of 
> staging the state of the file you want to keep, just store it in a patch:
>
> git diff SomeFile.txt > /tmp/1.patch #save state
> git checkout . # clear changes
> git apply /tmp/1.patch #restore state
>
> You could also consider using git stash -p and selectively stash the diffs 
> you want to keep for later.
>
> Where should we submit a feature request in case a porcelain command is 
>> missing for this case?
>>
>
> The place to go for feature requests is the Git developer mailing list: 
> https://gist.github.com/tfnico/4441562 
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to