App::P...:reset(3pm)

✨ App::Pinto::Command::reset ✨

okay bestie, gather round, because we're talking about App::Pinto::Command::reset β€” the User Contributed Perl Documentation page that lets you rewind time on your stack πŸ’… (yes, that's the manual name, we're keeping it, it's part of the family now).

VERSION: version 0.14 πŸŽ€


🌈 SYNOPSIS 🌈

pinto --root=REPOSITORY_ROOT reset [OPTIONS] REVISION

that's it. that's the whole vibe check. πŸ”₯


πŸ’– DESCRIPTION πŸ’–

!! THIS COMMAND IS EXPERIMENTAL !! 😭

not me warning you first thing. but fr fr, heads up: this is experimental, so be a little brave about it.

so what does it do? it moves the head of the stack to a prior revision, which means β€” and I need you to sit down for this β€” it discards all the subsequent revisions. like, gone. poof. πŸ’€

if that sounds a lil too permanent for your delicate little heart, there's a whole other command for you: check out revert, which restores the stack to a prior revision by creating a new revision instead. same destination, way less chaos energy. pick your fighter 🫢


🌸 COMMAND ARGUMENTS 🌸

so the arguments here are the name of the stack and the id of the revision you wanna reset to. iconic duo.

if you don't specify the stack, it just defaults to whichever stack is currently marked as the default. easy. you can also specify the stack using the --stack option instead (more on that below πŸ‘‡). some examples, because we love examples:

pinto ... reset af01256e          # Reset default stack to revision af01256e
pinto ... reset mystack af01256e  # Reset mystack to revision af0125e

see how the first one skips the stack name and just goes straight for the revision? that's the default-stack life. ✨


πŸ¦‹ COMMAND OPTIONS πŸ¦‹

  • --force β€” forces the reset even if the revision is not actually an ancestor. normally you can only reset to a revision that the stack has actually been at, so this one is for when you're feeling spicy and want to bend the rules. πŸ”₯
  • --stack=NAME, -s NAME β€” perform the reset on the stack with the given NAME. it defaults to the name of whichever stack is currently marked as the default stack. wanna see what stacks even exist in your repository? run the stacks command, bestie, it's right there. 🌟
lowkey important: this option is silently ignored if the stack is specified as a command argument instead. so if you pass a stack name and use --stack, the argument wins and nobody tells you. no cap. πŸ™ˆ

πŸ‘‘ AUTHOR πŸ‘‘

Jeffrey Ryan Thalhammer <jeff@stratopan.com>


This software is copyright (c) 2015 by Jeffrey Ryan Thalhammer.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. πŸŽ€


and that's the whole page, bestie!! go forth and reset responsibly, and remember β€” this came to you courtesy of perl v5.40.1, dated 2025-04-21, from the App::Pinto::Command::reset manual page (3pm section). mwah πŸ’‹βœ¨πŸ¦‹

πŸ“¦ where this page comes from