Ticket #2275: 0001-search-skip-working-copy-meta-data-of-known-version-.patch

File 0001-search-skip-working-copy-meta-data-of-known-version-.patch, 972 bytes (added by ossi, 14 years ago)
  • src/find.c

    From 3018a8d8d6c0591c10b6bc8a55ad74bd80b9b701 Mon Sep 17 00:00:00 2001
    From: Oswald Buddenhagen <ossi@kde.org>
    Date: Fri, 3 Apr 2009 00:33:01 +0200
    Subject: [PATCH] search: skip working copy meta data of known version control systems
    
    ---
     src/find.c |    7 ++++++-
     1 files changed, 6 insertions(+), 1 deletions(-)
    
    diff --git a/src/find.c b/src/find.c
    index a38d888..ed9662a 100644
    a b do_search (struct Dlg_head *h) 
    973973            ; 
    974974    }                           /* while (!dp) */ 
    975975 
    976     if (strcmp (dp->d_name, ".") == 0 || strcmp (dp->d_name, "..") == 0) 
     976    if (strcmp (dp->d_name, "CVS") == 0 || 
     977        strcmp (dp->d_name, ".svn") == 0 || 
     978        strcmp (dp->d_name, ".git") == 0 || 
     979        strcmp (dp->d_name, ".hg") == 0 || 
     980        strcmp (dp->d_name, ".") == 0 || 
     981        strcmp (dp->d_name, "..") == 0) 
    977982    { 
    978983        dp = mc_readdir (dirp); 
    979984        /* skip invalid filenames */