[ 
https://issues.apache.org/jira/browse/SOLR-10713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16019000#comment-16019000
 ] 

Jason Gerlowski edited comment on SOLR-10713 at 5/21/17 10:16 PM:
------------------------------------------------------------------

Another case to consider is the collection directories created when Solr runs 
using the {{bin/solr}} scripts with default settings.

{code:title=Git Status output}
[~/c/l/solr] $ git status
On branch master
Your branch is up-to-date with 'origin/master'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        server/solr/collection_name2_shard1_replica1/
        server/solr/collection_name_shard1_replica1/
        zookeeper.out
{code}

These are a bit trickier to exclude, since the path includes the collection 
name, but I'm 99% sure that server/solr/\*_shard\*replica*/ would do the trick 
if added to the .gitignore in the {{solr/}} directory.  I'll hold off adding 
this to the patch until confirmation/approval.


was (Author: gerlowskija):
Another case to consider is the collection directories created when Solr runs 
using the {{bin/solr}} scripts with default settings.

{code:title=Git Status output}
[~/c/l/solr] $ git status
On branch master
Your branch is up-to-date with 'origin/master'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        server/solr/collection_name2_shard1_replica1/
        server/solr/collection_name_shard1_replica1/
        zookeeper.out
{code}

These are a bit trickier to exclude, since the path includes the collection 
name, but I'm 99% sure that {{server/solr/*_shard*replica*/}} would do the 
trick if added to the .gitignore in the {{solr/}} directory.  I'll hold off 
adding this to the patch until confirmation/approval.

> git should ignore common output files (*.pid, *.out)
> ----------------------------------------------------
>
>                 Key: SOLR-10713
>                 URL: https://issues.apache.org/jira/browse/SOLR-10713
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Build
>            Reporter: Jason Gerlowski
>            Assignee: Mike Drob
>            Priority: Trivial
>         Attachments: SOLR-10713.patch, SOLR-10713.patch, SOLR-10713.patch, 
> SOLR-10713.patch
>
>
> During the course of experimenting/testing Solr, it's common to accumulate a 
> number of output files in the source checkout.  Many of these are already 
> ignored via the {{.gitignore}}.  (For example, {{*.jar}} and {{*.log}} files 
> are untracked currently)
> Some common output files aren't explicitly ignored by git though.  I know 
> this is true of {{*.pid}} and {{*.out}} files (such as those produced by 
> running a standalone ZK).
> It'd be nice if we could update the {{.gitignore}} to explicitly ignore these 
> filetypes by default.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to