#1703 Auto-Import Files to Project should consider ignore dirs

open
Dale Anson
5
2013-03-18
2013-03-18
Alan Ezust
No

If I have the option "auto-add files to project", it should ignore files that are in the "directories to ignore" specification of the projectviewer reimport options.

Currently, it auto-adds files like .git/COMMIT_EDITMSG which it should not ever add to the project.

Discussion

  • Alan Ezust
    Alan Ezust
    2013-03-18

    • assigned_to: nobody --> daleanson
     
  • Alan Ezust
    Alan Ezust
    2013-03-18

    • summary: Auto-Add Files to Project should consider ignore dirs --> Auto-Import Files to Project should consider ignore dirs
     
  • Alan Ezust
    Alan Ezust
    2013-03-18

    Let me clarify. The option is "importing new files" and the radio button chosen is "auto import"

     
  • Alan Ezust
    Alan Ezust
    2013-03-18

    I tried adding !COMMIT_EDITMSG to the "files to import", and it is also not considered during auto-import.

     
  • Alan Ezust
    Alan Ezust
    2013-03-31

    looked at the code involved. ProjectViewer line 1251. Now that is what I call ugly-ass code!
    And probably must be cleaned up or refactored somehow in order to implement this.

     
  • Dale Anson
    Dale Anson
    2013-04-01

    Yes, that does look like a good candidate for refactoring.

     
  • Dale Anson
    Dale Anson
    2013-04-01

    Ugh.