git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* GIT: ignoring changes in tracked files and bug report
@ 2014-12-04 22:42 Sérgio Basto
  2014-12-05  6:12 ` bug report on update-index --assume-unchanged Sérgio Basto
  2014-12-05 10:56 ` [PATCH] commit: ignore assume-unchanged files in "commmit <file>" mode Nguyễn Thái Ngọc Duy
  0 siblings, 2 replies; 19+ messages in thread
From: Sérgio Basto @ 2014-12-04 22:42 UTC (permalink / raw)
  To: git

Hi, I'm trying find a solution where I can change file in a devel
environment , and not commit it into git . 

git update-index --assume-unchanged <file> 

is one solution , not the best solution but one solution. 

I add 2 files that I want ignore on commits 

git update-index --assume-unchanged configurations/local.defs
git update-index --assume-unchanged processor/default.defs

git diff -a 
is clean 
git diff .
is clean

git commit -a 
nothing added to commit
but 
git commit . 
# Changes to be committed:
#       modified:   configurations/local.defs
#       modified:   processor/default.defs

this is a bug ? 

Anyway what is best way to deal with some files where we want change
locally and not commit in git . 
The solution of have one environment variable that says if we are in
devel or in production , and system read the variable and choose the
files to read can't be applied in my case, and is a no solution , is
save a variable outside of source code which I can't. 


Thanks,
-- 
Sérgio M. B.

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2014-12-11 23:23 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-04 22:42 GIT: ignoring changes in tracked files and bug report Sérgio Basto
2014-12-05  6:12 ` bug report on update-index --assume-unchanged Sérgio Basto
2014-12-05  6:55   ` Johannes Sixt
2014-12-05 10:52     ` Duy Nguyen
2014-12-05 16:57       ` Sérgio Basto
2014-12-05 18:30         ` Junio C Hamano
2014-12-05 20:48           ` Philip Oakley
2014-12-05 21:05             ` Junio C Hamano
2014-12-05 21:55               ` Philip Oakley
2014-12-05 22:18                 ` Andreas Schwab
2014-12-06  0:45             ` Sérgio Basto
2014-12-06 13:28               ` Philip Oakley
2014-12-05 21:19           ` Junio C Hamano
2014-12-05 21:39           ` Sérgio Basto
2014-12-05 21:52             ` Junio C Hamano
2014-12-05 18:33       ` Junio C Hamano
2014-12-05 10:56 ` [PATCH] commit: ignore assume-unchanged files in "commmit <file>" mode Nguyễn Thái Ngọc Duy
2014-12-09  2:44   ` Sérgio Basto
2014-12-11 23:23     ` Philip Oakley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).