Analyze Subsystems

To dive into a subsystem we exclude all code contributions except the ones that touch the drivers/gpu module. This is straightforward, as git log already implements the functionality we need. We just need to specify an optional path, as shown in the following shell command:

 adam$ ​​git​​ ​​log​​ ​​--format=format:​​ ​​--name-only​​ ​​--after=2016-01-01​​ ​​\
  ​​--​​ ​​drivers/gpu/​​ ​​|​​ ​​sort​​ ​​|​​ ​​uniq​​ ​​-c​​ ​​|​​ ​​sort​​ ​​-r​​ ​​|​​ ​​head​​ ​​-5
  542 drivers/gpu/drm/i915/intel_display.c
  503 drivers/gpu/drm/i915/i915_drv.h
  343 drivers/gpu/drm/i915/i915_gem.c
  240 drivers/gpu/drm/i915/intel_drv.h
  235 drivers/gpu/drm/i915/intel_pm.c

The argument -- drivers/gpu/ instructs git log to show only commits ...

Get Software Design X-Rays now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.