module Git::Commands::SymbolicRef
Commands for reading, updating, and deleting symbolic refs via βgit symbolic-ref`
This module contains command classes split by invocation mode:
-
{SymbolicRef::Read} β read the target of a symbolic ref
-
{SymbolicRef::Update} β create or update a symbolic ref to point at a given branch
-
{SymbolicRef::Delete} β delete a symbolic ref
@example Read the current HEAD
cmd = Git::Commands::SymbolicRef::Read.new(lib) cmd.call('HEAD')
@example Update HEAD to point to a branch
cmd = Git::Commands::SymbolicRef::Update.new(lib) cmd.call('HEAD', 'refs/heads/main')
@example Delete a symbolic ref
cmd = Git::Commands::SymbolicRef::Delete.new(lib) cmd.call('HEAD')
@see git-scm.com/docs/git-symbolic-ref git-symbolic-ref documentation
@api private