title: How to output file name inside system(git log) command in ruby script?
body: <p>The problem I encounter is that I don't manage to put the name of the file inside the below screen output inside git log using pretty format flag.</p>
  
  <p>An extract of my code is the following:</p>
  
  <pre><code>filename = File.basename file
  system('git log --pretty=format:"%cd: (here I want the filename)"')
  </code></pre>
  
  <p>presented as sample.c for example.</p>
  
  <p>I tried <code>#{filename}</code> but is interpreted as a string from the compiler and the result is the same as the input.</p>
  
  <p>Thank you in advance.</p>