(path, directory string)
| 304 | } |
| 305 | |
| 306 | func isPathInDirectory(path, directory string) bool { |
| 307 | return directory == "." || strings.HasPrefix(path, directory+"/") |
| 308 | } |
| 309 | |
| 310 | // AddWithOptions file contents to the index, updates the index using the |
| 311 | // current content found in the working tree, to prepare the content staged for |