vcsh icon indicating copy to clipboard operation
vcsh copied to clipboard

FEATURE: `vcsh commit [$file]` -- Directly commit changes to a tracked file

Open RichiH opened this issue 12 years ago • 1 comments

vcsh commit:

  • Find all staged changed changes
  • for repo in list found staged changes in repos; do vcsh run $repo git commit --verbose; done # with some magic to show which vcsh repo you are in

vcsh commit $file

  • Check if $file is tracked by one repo only
  • vcsh run $repo git commit $file

RichiH avatar Apr 27 '13 06:04 RichiH

Possible ways to seed the commit message:

  • git commit -t -- sadly, this needs a file
  • prepare-commit-msg hook -- sadly, this means changing the actual repo

RichiH avatar Apr 27 '13 21:04 RichiH