--depthオプションのテストをしてみました。
git clone --depth Nとするときにとしたあとに、Nコミット前よりもさらに前に枝分かれしたブランチをマージしてからpullしてくると全コミットが落ちてきました。なのでマージコミットが発生した段階で
C ← Cがmaster
D | ← Dがfeature
|/
B
|
| #!/usr/bin/env ruby | |
| # Put me at .git/hooks/post-checkout | |
| root_dir = File.expand_path("../../..", __FILE__) | |
| Dir.chdir(root_dir) do | |
| system "git submodule update" | |
| end |
| マスターのファイルを生成します。 | |
| 使い方: | |
| $ rails g master ship_type | |
| => app/models/ship_type.rb | |
| => db/master/ship_types.yml |
| module Filterable | |
| def self.included(base) | |
| fail "#{base} MUST include Enumerable to include #{name}" unless base.include?(Enumerable) | |
| base.extend ClassMethods | |
| base.const_set(base.filter_chain_class_name, base.filter_chain_class) | |
| end | |
| def filter_chain | |
| self.class.filter_chain_class.new(self) |
| namespace :deploy do | |
| desc "List rolled-back-release archives" | |
| task :rolled_back_releases do | |
| on release_roles(:all) do | |
| within deploy_path do | |
| archives = capture(:ls, "-xt").split.select do |path| | |
| path.start_with?("rolled-back-release-") | |
| end | |
| if archives.any? |
--depthオプションのテストをしてみました。
git clone --depth Nとするときにとしたあとに、Nコミット前よりもさらに前に枝分かれしたブランチをマージしてからpullしてくると全コミットが落ちてきました。なのでマージコミットが発生した段階で
C ← Cがmaster
D | ← Dがfeature
|/
B
|
| 15/7/28 14:12:38.869 Terminal[1949]: AppleEvents/sandbox: Returning errAEPrivilegeError/-10004 and denying dispatch of event ESIM/load from process 'SIMBL Agent'/0x0-0x11011, pid=340, because it is not entitled to send an AppleEvent to this process. |
| #!/usr/bin/env ruby | |
| if ARGV.count == 0 | |
| puts "Usage: captime <file> [<host>]" | |
| end | |
| data = Hash.new { |h, k| h[k] = {} } | |
| logfile = File.expand_path(ARGV[0]) | |
| host = ARGV[1] |
| require "date" | |
| # | |
| # <%= calendar year: 2015, month: 4 do |date, is_this_month| | |
| # <td> | |
| # <%- if is_this_month %> | |
| # <%= date.day %> | |
| # <%- else %> | |
| # <span class="text-muted"><%= date.day %></span> | |
| # <%- end %> |
| task :environment do | |
| errors = [] | |
| %w( | |
| TF_VAR_dnsimple_email | |
| TF_VAR_dnsimple_token | |
| AWS_ACCESS_KEY_ID | |
| AWS_SECRET_ACCESS_KEY | |
| AWS_DEFAULT_REGION | |
| ).each do |name| | |
| errors << name if ENV[name].nil? |