ruby - Creating new Tags -


Just wondering whether it is possible to create a new GIT tag using rugged. If so, one example would be greatly appreciated.

I am basically trying to create / move / delete tags on Oud.

You can see some examples in:

  @repo = sandbox_init ("Testrepo.git") @tag = @ repo.tags.create ('annotated_tag', '5b5b025afb0b4c913b4c338a42934a3863bf3644', {: message = & gt; "test tag message \ n" ,: tagger => gt; {: name = & Gt; 'Scott' ,: Email = & gt; 'schacon@gmail.com',: time => time.nah}})  

To delete, see:

  tag = @ repo.tags ["test"] @ Repo.references.delete (tag) @ repo.references.exists? 

>


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -