Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/ruby
- full_commits = "0"
- message = "Test subject
- This is a multiline commit message
- to check whether I understood how
- to do shit with arrays and strings
- in Ruby.
- "
- log_lines = message.split("\n")
- log = log_lines.shift
- if full_commits.to_i == 1
- log_lines.each do |log_line|
- log << "\n" << log_line
- end
- end
- print log
Advertisement
Add Comment
Please, Sign In to add comment