last day (15 days later) » 

10:21 PM
0
A: Gitignore GLOB pattern to track files without file extension

akondI ended up with this .gitignore: * !**/*\.* Update .gitignore * !*.asm

 
vvy
This still does ignore the files with no file_extension. I need to track the files which have no file_extension.
 
You want track and ingore files with no file extension at the same time?
 
vvy
I'm terribly sorry for the confusion, It seems I made a serious typing mistake. I wish to track files with no file_extension.
 
Your .gitignore file works then. I've just checked it.
 
vvy
plz look at this link
 
10:21 PM
Loose the extension in the second line of your file.
 
vvy
@akond Do you mean I need to replace . with *
I tried that. but no change. my file without extension is still ignored
 
I see your dilemma now.
Why don't you just dispense with ignoring all files, and ignore only those extensions that are bothering you?
 
vvy
I think I will do that finally. It seems there is no simple way of tracking such file.
@akond Thanks for your help
 
Hold on, try this
.gitignore
**/*.*
!*.asm
 
vvy
10:37 PM
Okay
No effect
 
It's strange. I am getting it alright.
 
vvy
IT is working for you. That's surprising
I am running the latest version of git client.
 
$ git --version
git version 2.0.1
 
vvy
it says 1.9.4.msysgit.2
I'm on windows
 
I am on FreeBsd
Wait untill I get results from Linux
 
vvy
10:46 PM
It could be a bug. right?
 
Linux is ok.
bash-4.2$ git --version
git version 1.8.3.1
It maybe one of those Windows whims.
 
vvy
Should I mail this to git people?
 
I don't think so, Windows shows me the same results.
 
vvy
Wow.. Seems my machine is FooBar
 
Let me get this straight. What files do you have and which of them you don't want to appear in git status results
 
vvy
10:51 PM
I have a habit of creating text files without extension.
so I need to track them
but other than source files .c .asm .S
everything else is to be ignored
 
show me the content of your directory
so we run on the same data
 
vvy
archive Sample
 
So what output you were expecting from git status?
 
vvy
I expect it to show me two untracked files
one would be asm file
the other shoud be the spec_0 file
 
I see. The problem is the spec_0 is already under git control
git log spec_0
 
vvy
11:01 PM
wait
Those snapshots that I showed you were
real time
now see
 
sorry, what?
 
vvy
Seems my starts are I fated today
Now it somehow is working
 
It didn't show spec_0, because it had not changes, not because .gitigore was incorrect.
 
vvy
All this trouble for FOOLISHNESS
@akons
@akond
My sincere apology
 
sure
 
vvy
11:05 PM
for taking your time
Thanks for helping me out
 
you're welcome
 

last day (15 days later) »