Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • L liquidprompt
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 33
    • Issues 33
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Johann Dreo
  • liquidprompt
  • Merge requests
  • !505

Add an option to display the current git branch only.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Johann Dreo requested to merge github/fork/laurentbardin/feature/399-git-branch-no-status into master Feb 18, 2017
  • Overview 3
  • Commits 4
  • Pipelines 0
  • Changes 2

Created by: laurentbardin

This is a first draft fix for #399 (closed). It has a few drawbacks and could be enhanced if needed:

  1. if we wanted to implement the mechanism for every supported VCS, it would add one variable each time;
  2. we could use one variable for every VCS, something like LP_ENABLE_VCS_BRANCH_ONLY, but then we lose fine-grained control over it.

I don't think that second point really matters, as the problem mentioned in the issue (slow I/O and big repo) is bound to happen with every VCS at some point.

As for the patch itself, I'm really not fluent with bash so feel free to point any mistake. It looks messy, but it's mostly changes in indentation.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/laurentbardin/feature/399-git-branch-no-status