[haiku-development] Re: Question

  • From: Fredrik Modèen <fredrik@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 19 Feb 2012 00:21:17 +0100 (CET)

> On Sat, Feb 18, 2012 at 3:13 PM, Fredrik Modèen <fredrik@xxxxxxxxx>
> wrote:
>> If I do a git diff and are not getting any results, nothing will be
>> submitted when I commit right?
>
> Not necessarily. That means that your working copy is identical to
> your index. If you run git diff --cached and get no results, then your
> index is also identical to HEAD.
Thanks :)

>
>> Reason for this question is that I had a lot of changes and made a new
>> director (not a new branch or so, that out of my leg when it comes to
>> git). I reverted everything in the directory that will be used to commit
>> stuff but I had problem getting it clean and I don't want to submit
>> stuff
>> that I’m not intended to submit and doing a diff should answer that
>> question like it does in SVN?
>
> Another option is to add the -v flag when you call git commit, which
> will show you a patch of all the changes you are committing (it isn't
> part of your commit message though).
Ok Good to know :)

-- 
MVH
Fredrik Modèen


Other related posts: