pruneCmd

package
v0.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2016 License: MIT Imports: 16 Imported by: 2

README

repo prune

Delete Git branches that are no longer needed.

Usage

salsaflow repo prune -state=STATE

Description

Delete Git branches that are no longer needed.

All story branches are checked and the branches that only contain commits associated with stories that are in the selected state or further are offered to be deleted. Both local and remote branches are affected.

This commands counts on the fact that all branches starting with story/ are forked off trunk. In case this is not met, weird things can happen.

Steps

This command goes through the following steps:

  1. Collect all story branches.
  2. Drop the branches that contain a commit from a story that does not comply with the state requirements.
  3. Prompt the user for confirmation for every branch remaining.
  4. Delete the chosen branches, both local and remote.

Documentation

Overview

Delete Git branches that are no longer needed.

salsaflow repo prune -state=STATE

Description

Delete Git branches that are no longer needed.

All story branches are checked and the branches that only contain commits associated with stories that are in the selected state or further are offered to be deleted. Both local and remote branches are affected.

This commands counts on the fact that all branches starting with story/ are forked off trunk. In case this is not met, weird things can happen.

Steps

This command goes through the following steps:

  1. Collect all story branches.
  2. Drop the branches that contain a commit from a story that does not comply with the state requirements.
  3. Prompt the user for confirmation for every branch remaining.
  4. Delete the chosen branches, both local and remote.

Index

Constants

View Source
const StoryBranchPrefix = "story/"

Variables

View Source
var Command = &gocli.Command{

	Short: "delete branches that are not needed",
	Long: `
  Delete Git branches that are no longer needed.

  All story branches are checked and the branches that only contain commits
  associated with stories that are in the selected state or further
  are offered to be deleted. Both local and remote branches are affected.

  This commands counts on the fact that all branches starting with story/
  are forked off trunk. In case this is not met, weird things can happen.
	`,
	Action: run,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL