Giter VIP home page Giter VIP logo

plack-middleware-debug-gitstatus's Introduction

NAME

Plack::Middleware::Debug::GitStatus - Display git status information about the directory from which you run your development server

SYNOPSIS

# Assuming your current directory is the relevant git dir:
builder {
    enable 'Debug', panels => [ qw( Environment Response GitStatus ) ];
    $app;
};

# If you need to set a git dir:
return builder {
    enable 'Debug', panels => [ qw( Environment Response ) ];
    enable 'Debug::GitStatus', git_dir => '/some/path';
    $app;
};

# or if you want to specify a url to gitweb/gitalist/etc:
return builder {
    enable 'Debug', panels => [ qw( Environment Response ) ];
    enable 'Debug::GitStatus', gitweb_url => 'http://example.com/cgi-bin/gitweb?p=my_repo.git;h=%s';
    $app;
};

DESCRIPTION

This panel gives you quick access to the most relevant git information:

  • the currently checked out branch
  • git status information
  • information about the most recent commit

CONFIGURATION

There are two optional parameters you can use to configure this panel plugin:

  • git_dir

    The path to your repository in case the current dir of your application is outside of this.

  • gitweb_url

    If you want the panel to give you a link to your gitweb, gitolite, etc installation, provide the URL here. You need to provide a string that will be used as a format string in a call to sprintf, thus the string needs to contain a %s which will be supplied with the sha-1 of the most recent commit.

    Example: 'http://localhost/somegitwebtool?hash=%s'

SEE ALSO

https://metacpan.org/pod/Plack::Middleware::GitStatus - Gives you the option to send a HTTP request to your server that will be answered with git status information.

BUGS AND LIMITATIONS

No bugs have been reported.

Please report any bugs or feature requests through the web interface at https://github.com/mannih/Plack-Middleware-Debug-GitStatus.

AUTHOR

Manni Heumann, <[email protected]>

COPYRIGHT AND LICENSE

Copyright 2014 by Manni Heumann

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

plack-middleware-debug-gitstatus's People

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.