Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

.jazzignore not working w/ RTC CLI?

Hi,
I'm using RTC CLI (not sure about version though, since if I issue a 'lscm version' I get a lot of stuff printed out that I can't make much sense of).
I'm trying to get rid of object files in my tree, so I placed a .jazzignore file atop of it with the following content:

core.ignore.recursive= \
{*.o} {*.o.cmd} {*.d} {*.s.cmd}

However, when I issue 'lscm status' I still get, e.g.:

sszabo@host component $ lscm status
Workspace: (1016) [...]
  Component: (1013) "component"
    Baseline: (1041) 1 "Initial Baseline"
    Unresolved:
[...]
      a-- /path/to/file/.missing-syscalls.d
[...]
      a-- /path/to/file/.crtsavres.o.cmd
[...]
      a-- /path/to/file/crtsavres.o

Can someone please let me know what I'm doing wrong?
Thanks,
Stefan

0 votes

Comments

Hi Stefan,

Is your .jazzignore file checked in?

Thanks,

Sridevi

RTC SCM CLI

No, nor would I want it checked in! I assumed it would work just like .gitignore... Apparently not :(
Thanks for your answer,
Stefan



2 answers

Permanent link

It is not required to checkin the .jazzignore files to get it work. It looks like you have to add it to the top level subdirectories CLI does not use .jazzignore file (58578)

Thanks,

Sridevi

1 vote

Comments

I've submitted work item Clarify where .jazzignore files can be located (253871) so that the documentation makes this clear.


Permanent link
So, in order to summarize and add more, learned-the-hard-way, info:
1) Any .jazzignore file located in the top-level dir of a component's sandbox (as created w/ lscm load) is not itself being ignored by RTC, only its semantics are: do not -- under any circumstance -- place any files that you don't want checked into RTC in the top-level dir. of your component!
2) If the top-level dir has any number (e.g. 136) of subdirs of its own, and each such subdir potentially contains some files to be ignored by RTC (e.g. build-generated *.o files -- not the cleanest way to organize a project, I agree!), then in order for RTC to ignore those files, one should place a .jazzignore (containing at least a core.ignore.recursive={*.o} clause) in each of the top-level subdirs (for a total of 136 .jazzignore files!).
3) One may choose to ignore the .jazzignore files themselves by adding a core.ignore={.jazzignore} to each one.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,122
× 87

Question asked: Feb 26 '13, 9:54 a.m.

Question was seen: 7,664 times

Last updated: Mar 03 '15, 11:11 p.m.

Confirmation Cancel Confirm