git: inline diffs with --word-diff! (intermediate) anthony explains

  Рет қаралды 3,433

anthonywritescode

anthonywritescode

Күн бұрын

today I show a tiny tip when working with patches in `git` (such as with `git diff` or `git log -p`) to show inline differences instead of full line differences
playlist: • anthony explains
==========
twitch: / anthonywritescode
dicsord: / discord
twitter: / codewithanthony
github: github.com/aso...
stream github: github.com/ant...
I won't ask for subscriptions / likes / comments in videos but it really helps the channel. If you have any suggestions or things you'd like to see please comment below!

Пікірлер: 15
@mjaysmileofficial
@mjaysmileofficial 10 ай бұрын
also you can use something like diff-so-fancy which shows word changes by default and is easy as "git diff | diff-so-fancy"
@ilovepeaceandplaying8917
@ilovepeaceandplaying8917 10 ай бұрын
This is cool, I am using whole new diff tool to achieve this, which is a overkill
@mrswats
@mrswats 10 ай бұрын
That's a very nice little trick to keep in mind! Very useful stuff.
@Lev-f6z
@Lev-f6z 9 ай бұрын
I wanted to ask about namespaces. is using classes for namespaces good? can i call this code clean? or maybe there is another analogs for these kind of things? Of course, i mean situation, where i need to have another namespace in same file, so i dont have to make a lot of modules or other situations, where this can make code more simple and readable. Or python modules, packages and classes cover all possible needs in namespaces, and if there is no obvious solution using these means that my code is dirty?
@anthonywritescode
@anthonywritescode 9 ай бұрын
there's no such thing as clean code. don't worry about it. do what makes sense for you
@greob
@greob 10 ай бұрын
I recommend using git-delta which is pretty good at highlighting things in diff patches.
@a_maxed_out_handle_of_30_chars
@a_maxed_out_handle_of_30_chars 10 ай бұрын
true, works like a charm
@0x255
@0x255 10 ай бұрын
delta has no support for word-diff
@djchainz
@djchainz 10 ай бұрын
Yes but by default it does its own thing highlighting the in-line removals/additions with a stronger background colour. I find that more readable than --word-diff, though it's not customizable. @@0x255
@qexat
@qexat 10 ай бұрын
That's cool! I wonder why word diff is not the default though
@sadhlife
@sadhlife 10 ай бұрын
when you edit code you add/remove statements usually, for those word diff can be very noisy.
@sohamtilekar5126
@sohamtilekar5126 9 ай бұрын
What is the difference between the Asyncio vs ThreadPoolExecutr.
@uccoskun
@uccoskun 9 ай бұрын
hello, can you show an example of comparing two microsoft word documents, please?
@anthonywritescode
@anthonywritescode 9 ай бұрын
I would not recommend doing that
@ClaytonAAlves
@ClaytonAAlves 10 ай бұрын
git diff --color-words
Кәсіпқой бокс | Жәнібек Әлімханұлы - Андрей Михайлович
48:57
Ozoda - Lada ( Official Music Video 2024 )
06:07
Ozoda
Рет қаралды 30 МЛН
oops I'm the pyuwsgi maintainer now (intermediate) anthony explains #579
22:55
Why I Don't Like Singletons
29:05
The Cherno
Рет қаралды 82 М.
Microservices are Technical Debt
31:59
NeetCodeIO
Рет қаралды 519 М.
git rebase - Why, When & How to fix conflicts
9:45
Philomatics
Рет қаралды 53 М.
py-spy saved our python 3.11 rollout (intermediate) anthony explains #568
13:48
Ryan Dahl introduces JSR at DevWorld 2024
29:13
Deno
Рет қаралды 111 М.
My Initial Impresson Of Go
12:39
TheVimeagen
Рет қаралды 95 М.
how does python's module `__getattr__` actually work?
17:38
anthonywritescode
Рет қаралды 2,6 М.
40 Years Of Software Engineering Experience In 19 Minutes
19:10
Continuous Delivery
Рет қаралды 89 М.
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 1,2 МЛН
Кәсіпқой бокс | Жәнібек Әлімханұлы - Андрей Михайлович
48:57