[pathspec] add stub codes
[diff] add stub codes
[patch] add stub codes
[patch] add stubs