Giter VIP home page Giter VIP logo

git-hotspot's Introduction

Git Hotspot Extension

Git Hotspot is a git extension that identifies 'hot' files (tracked files in a git repository that are modified the most).

Why is this useful? For a few reasons:

  • When starting to learn a new codebase, I often find it helpful to begin by reviewing files which are edited most often as it's likely you'll spend some time in them yourself.
  • Files subject to a large amount of churn are often good candidates to refactor as it often an indicator it's doing too much. This is especially true in languages that favor one type/class per file.

Usage

$ git clone https://github.com/grafana/tempo.git
$ cd tempo
$ git hotspot

Files                                                # Modifications
operations/jsonnet/microservices/config.libsonnet    51
operations/jsonnet/microservices/ingester.libsonnet  23
modules/querier/querier_test.go                      21
modules/overrides/overrides.go                       17
tempodb/encoding/common/types.go                     16
tempodb/encoding/finder_paged.go                     11
tempodb/pool/pool.go                                 11
.goreleaser.yml                                      7
GOVERNANCE.md                                        7
example/tk/jsonnetfile.json                          6
tempodb/search/data_combiner.go                      4
.drone/drone.jsonnet                                 4
tempodb/encoding/iterator_multiblock_test.go         4
tempodb/search/searchable_block.go                   3
integration/bench/stress_test_write_path.js          3

Installation

Requirements:

  • git
  • Go version 1.18 or above

Clone this repo then run the following in your CLI:

$ make build  
$ make install

Now navigate to a git repository and run git hotspot.

git-hotspot's People

Contributors

josephwoodward avatar

Watchers

 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.