Skip to main content

git-blame for stacktraces

Project description

git-stacktrace

git-stacktrace is designed to make it easy to figure out which commit caused a given stacktrace.

git-stacktrace looks for:

  • commits in given range that touched files in the stacktrace
  • commits in given range that added/removed code present the stacktrace

Supported Languages

  • Python
  • Java

Development

Run tests with: tox

Installation

$ pip install git_stacktrace

Usage

For the CLI see: git stacktrace -h

For the Python API see: git_stacktrace/api.py

Examples

Example output:

$ git stacktrace --since=1.day < trace
Traceback (most recent call last):
 File "webapp/framework/resource.py", line 72, in _call
   result = getattr(self, method_name)()
 File "webapp/resources/interests_resource.py", line 232, in get
   if self.options['from_navigate'] == "true":
KeyError


commit da39a3ee5e6b4b0d3255bfef95601890afd80709
Commit Date: Tue, 19 Jul 2016 14:18:08 -0700
Author:      John Doe <johndoe@pinterest.com>
Subject:     break interest resource
Link:        https://example.com/D1000
Files Modified:
   - webapp/resources/interests_resource.py:232
Lines Added:
   - "if self.options['from_navigate'] == "true":"

Change Log

0.8.0

  • Fix pickaxe support for python3
  • Improve java traceback support
  • Improve the python api

0.7.2

0.7.1

0.7.0

  • Add python 3 support

0.6.0

  • Support arbitrary sized abbreviated hashes
  • Clarify CLI help message

0.5.0

  • Match file line numbers in stacktrace to lines changed in commits
  • Differentiate files added, deleted and modified
  • print stacktrace headers and footers
  • Fix git pickaxe error (Use ‘–’ to separate paths from revisions)
  • Add initial java stacktrace support. Begin supporting basic java stacktraces, some more complex formats are not supported yet.

0.4.1

  • Get ready for pypi

0.4.0

  • Initial open source commit

Project details


Release history Release notifications

This version
History Node

0.8.0

History Node

0.7.2

History Node

0.7.1

History Node

0.7.0

History Node

0.6.0

History Node

0.5.0

History Node

0.4.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
git-stacktrace-0.8.0.tar.gz (24.3 kB) Copy SHA256 hash SHA256 Source None Nov 30, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page