We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 866c39d commit a7d0909Copy full SHA for a7d0909
test/git-open.bats
@@ -183,6 +183,19 @@ setup() {
183
assert_output "https://gist.github.com/2d84a6db1b41b4020685"
184
}
185
186
+@test "gh: --file option" {
187
+ run ../git-open -f readme.txt
188
+ assert_output "https://github.com/paulirish/git-open/tree/master/readme.txt"
189
+
190
+ # and now a new file in a subdirectory.
191
+ mkdir -p subdir
192
+ touch subdir/howdy.txt
193
+ git add subdir
194
+ git commit -am add-in-howdy
195
+ run ../git-open -f subdir/howdy.txt
196
+ assert_output "https://github.com/paulirish/git-open/tree/master/subdir/howdy.txt"
197
+}
198
199
@test "basic: # and % in branch names are URL encoded" {
200
# https://github.com/paulirish/git-open/pull/24
201
git checkout -B "issue-#42"
0 commit comments