Logo

dev-resources.site

for different kinds of informations.

Ask Git to Show a Method

Published at
11/23/2024
Categories
git
shell
Author
calebhearth
Categories
2 categories in total
git
open
shell
open
Author
11 person written this
calebhearth
open
Ask Git to Show a Method

If you enjoy this article on Git, also check these other Git tips:

When coding, I often find myself wanting to quickly check the details of a function or method related to what Iโ€™m working on. For instance, I might need to understand how the function handles its arguments or recall its side effects.

If you just want to know how to do this, you can jump down and skip my story.

I usually use ctags with Vim for this. A quick ], a brief read, and a <Ctrl-o> and Iโ€™m back from whence I came and more informed for my effort. Still, sometimes would be more convenient to just have the code printed right to my terminal from the command line.

If youโ€™re here, you might remember that we previously looked at Gitโ€™s ability to walk the history of a specific method using git log -L1. What you might not know is that git log and git show are close siblingsโ€”actually defined in the same file.

Read More

shell Article's
30 articles in total
Favicon
Poor man's parallel in Bash
Favicon
Ergonomic Pyhon Text Piping Solution for Linux Shell with pypyp and uv
Favicon
Become a Bash Scripting Pro in 10 Minutes: A Quick Guide for Beginners
Favicon
Final Bash Script Series Mastering Remote Server Management and Web App Deployment
Favicon
kkTerminal โ€”โ€” A terminal for Web SSH connection
Favicon
The Complete Guide to Bash Commands
Favicon
Navigating TC39 Proposals: From Error Handling to Iterator.range
Favicon
Introducing TheShell: A Game-Changer in LivinGrimoire
Favicon
Pick Files from a List for Git Add and Stash Directly in Your Terminal
Favicon
Start Shell Programming: A Beginner's Guide โš™ [Part-I]
Favicon
Pytest Fish shell autocompletion
Favicon
Discover File Splitter & Merger: A Revolutionary Tool for Managing Large Files
Favicon
๐Ÿš€ RazzShell v1.0.1 is Here: Plugin Support, Enhanced Job Management, and More! ๐ŸŒŸ
Favicon
ps, kill -9 PID
Favicon
\\wsl$
Favicon
Escape quotes correctly when using psql via docker in bash
Favicon
Bash vs. Shell: The Ultimate Comparison
Favicon
Search and Sync Your Shell History With Atuin
Favicon
Building a (somewhat) intelligent agent
Favicon
Environment Management in Bash: Unlocking the Secrets of the Shell
Favicon
3 Must-Know File Permissions and Ownership Commands
Favicon
Ask Git to Show a Method
Favicon
UNIX
Favicon
DEV OPS JOURNEY
Favicon
Unlock the Secrets of Your Command Line with the History Command
Favicon
Mastering Text Processing with Grep, Sed, Awk, Cut, and Sort
Favicon
Shell Special Variables and Execution Environment
Favicon
Spice up Your Terminal With a Todo Reminder Using Starship Prompt and iZiDo Bash Script
Favicon
Introducing RazzShell: A Customizable Unix Shell for Modern CLI Users
Favicon
File Management in Bash : Commands and Examples

Featured ones: