RE: commit --strict feature request

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Date: Tue, 23 Mar 2010 18:47:16 +0100
> From: berdario@xxxxxxxxx
> To: git@xxxxxxxxxxxxxxx
> Subject: commit --strict feature request
> 
> Hi, i usually use bzr, and today i was searching for a commit --strict 
> equivalent in git... i asked around and it seems there isn't one, so i'm 
> writing this.
> 
> basically, by doing commit --strict it refuses to commit if there are 
> untracked (and thus not ignored) files in the tree, this helps against 
> forgetting to add new files (actually i find it so useful that i've even 
> changed commit to be an alias to commit --strict in my bzr aliases )
> 
> 
> greetings
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at http://vger.kernel.org/majordomo-info.html
 
 
Hi,
 
I think (someone correct me if I'm wrong) that being able to commit only part of the changes you made at a time is one of the major points of git (at least for me, anyway), so such a feature might go against the whole design.
 
Also, what you could use is 'git commit -v', which allows you to review all the changes you are commiting, and allows you to write a better commit message anyway, as you can look at the changes, instead of going from memory.
 
Another option might be to use a gui, such as 'git gui', which gives you a clear visual of what files have unstaged changes.
 
Hope that helps until somebody competent replies.
 
Tim. 		 	   		  
_________________________________________________________________
Browse profiles for FREE! Meet local singles online.
http://clk.atdmt.com/NMN/go/150855801/direct/01/--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]