From: Nguyễn Thái Ngọc Duy Date: Wed, 15 Dec 2010 15:02:47 +0000 (+0700) Subject: tree_entry_interesting(): optimize wildcard matching when base is matched X-Git-Tag: v1.7.5-rc0~122^2~10 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/f1a2ddbbc2df4e81e005a7e82f9e23fb6a9f95e3?ds=inline;hp=f1a2ddbbc2df4e81e005a7e82f9e23fb6a9f95e3 tree_entry_interesting(): optimize wildcard matching when base is matched If base is already matched, skip that part when calling fnmatch(). This happens quite often if users start a command from worktree's subdirectory and prefix is usually prepended to all pathspecs. Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano ---