diff --git a/watchman/root/watchlist.cpp b/watchman/root/watchlist.cpp index 5c0311ac507a..23218847d453 100644 --- a/watchman/root/watchlist.cpp +++ b/watchman/root/watchlist.cpp @@ -36,13 +36,6 @@ bool Root::removeFromWatched() { return false; } -// Given a filename, walk the current set of watches. -// If a watch is a prefix match for filename then we consider it to -// be an enclosing watch and we'll return the root path and the relative -// path to filename. -// Returns NULL if there were no matches. -// If multiple watches have the same prefix, it is undefined which one will -// match. bool findEnclosingRoot( const w_string& fileName, w_string_piece& prefix, diff --git a/watchman/root/watchlist.h b/watchman/root/watchlist.h index 6927908a598e..38561ecb170c 100644 --- a/watchman/root/watchlist.h +++ b/watchman/root/watchlist.h @@ -22,6 +22,13 @@ extern std::atomic live_roots; extern folly::Synchronized>> watched_roots; +// Given a filename, walk the current set of watches. +// If a watch is a prefix match for filename then we consider it to +// be an enclosing watch and we'll return the root path and the relative +// path to filename. +// Returns NULL if there were no matches. +// If multiple watches have the same prefix, it is undefined which one will +// match. bool findEnclosingRoot( const w_string& fileName, w_string_piece& prefix,