I use Rails to develop. I have a controller named cpc_admin_controller.rb
the full path is app/controllers/cpc_admin_controller.rb
, and a helper named admin_helper.rb
the full path is app/helpers/admin_helper.rb
. Then I remove a method from admin_helper.rb
to cpc_admin_controller.rb
, and save, use git to commit.
But the git show the messages as follows
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# renamed: app/helpers/admin_helper.rb -> app/controllers/cpc_admin_controller.rb
# modified: app/helpers/admin_helper.rb
I think it should show two modified like this, not the renamed
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: app/controllers/cpc_admin_controller.rb
# modified: app/helpers/admin_helper.rb
Someone can help me, tell me why?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…