diff options
Diffstat (limited to 'lib/gitlab/git/patches/patch.rb')
-rw-r--r-- | lib/gitlab/git/patches/patch.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/gitlab/git/patches/patch.rb b/lib/gitlab/git/patches/patch.rb new file mode 100644 index 00000000000..fe6ae1b5b00 --- /dev/null +++ b/lib/gitlab/git/patches/patch.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Gitlab + module Git + module Patches + class Patch + attr_reader :content + + def initialize(content) + @content = content + end + + def size + content.bytesize + end + end + end + end +end |