Index: subversion/include/svn_wc.h
===================================================================
--- subversion/include/svn_wc.h	(revision 14685)
+++ subversion/include/svn_wc.h	(working copy)
@@ -2930,6 +2930,15 @@
                                          apr_hash_t *config,
                                          apr_pool_t *pool);
 
+/** Get the list of ignore patterns from the @c svn_config_t's in the 
+ * @a config hash and the local ignore patterns from the directory
+ * in @adm_access. Allocate @a ignores and its contents in @pool.
+ */
+svn_error_t *svn_wc_get_ignores (apr_array_header_t **patterns,
+                                 apr_hash_t *config,
+                                 svn_wc_adm_access_t *adm_access,
+                                 apr_pool_t *pool);
+
 
 /** Add @a lock to the working copy for @a path.  @a adm_access must contain
  * a write lock for @a path.  If @a path is read-only, due to locking
Index: subversion/libsvn_wc/status.c
===================================================================
--- subversion/libsvn_wc/status.c	(revision 14685)
+++ subversion/libsvn_wc/status.c	(working copy)
@@ -1977,3 +1977,22 @@
   /* Return the new hotness. */
   return new_stat;
 }
+
+svn_error_t *
+svn_wc_get_ignores (apr_array_header_t **patterns,
+                    apr_hash_t *config,
+                    svn_wc_adm_access_t *adm_access,
+                    apr_pool_t *pool)
+{
+  const svn_string_t *local_ignores;
+
+  SVN_ERR (svn_wc_get_default_ignores (patterns, config, pool));
+  SVN_ERR (svn_wc_prop_get (&local_ignores, SVN_PROP_IGNORE,
+                            svn_wc_adm_access_path (adm_access), adm_access,
+                            pool));
+  if (local_ignores != NULL)
+    svn_cstring_split_append (*patterns, local_ignores->data, "\n\r", FALSE,
+                              pool);
+
+  return SVN_NO_ERROR;
+}
Index: subversion/libsvn_client/add.c
===================================================================
--- subversion/libsvn_client/add.c	(revision 14685)
+++ subversion/libsvn_client/add.c	(working copy)
@@ -293,7 +293,7 @@
 
   SVN_ERR (svn_wc_adm_retrieve (&dir_access, adm_access, dirname, pool));
 
-  SVN_ERR (svn_wc_get_default_ignores (&ignores, ctx->config, pool));
+  SVN_ERR (svn_wc_get_ignores (&ignores, ctx->config, adm_access, pool));
 
   /* Create a subpool for iterative memory control. */
   subpool = svn_pool_create (pool);


