File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
book/09-git-and-other-scms/sections Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 7979
8080Now that you have an integer representation of your commit, you need a date for the commit metadata.
8181Because the date is expressed in the name of the directory, you'll parse it out.
82- The next line in your `print_export` file is
82+ The next line in your `print_export` file is:
8383
8484[source,ruby]
8585----
8686date = convert_dir_to_date(dir)
8787----
8888
89- where `convert_dir_to_date` is defined as
89+ where `convert_dir_to_date` is defined as:
9090
9191[source,ruby]
9292----
@@ -220,7 +220,6 @@ def convert_dir_to_mark(dir)
220220 ($marks.index(dir)+1).to_s
221221end
222222
223-
224223def convert_dir_to_date(dir)
225224 if dir == 'current'
226225 return Time.now().to_i
@@ -259,7 +258,6 @@ def print_export(dir, last_mark)
259258 mark
260259end
261260
262-
263261# Loop through the directories
264262last_mark = nil
265263Dir.chdir(ARGV[0]) do
You can’t perform that action at this time.
0 commit comments