We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d26a175 commit b9e2e4bCopy full SHA for b9e2e4b
lib/rugged/index.rb
@@ -102,7 +102,7 @@ class Index
102
# marked with a single entry in the diff. If this flag is set to true,
103
# all files under ignored directories will be included in the diff, too.
104
def diff(*args)
105
- options = args.pop if args.last.is_a?(Hash)
+ options = args.last.is_a?(Hash) ? args.pop : {}
106
other = args.shift
107
if other.nil?
108
diff_index_to_workdir options
0 commit comments